Skip to content

Commit

Permalink
JasonLeyba: The bot.keys.type atom should work with email input eleme…
Browse files Browse the repository at this point in the history
…nts.

r11110
  • Loading branch information
jleyba committed Jan 24, 2011
1 parent 14057bf commit 6cf69e0
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 77 deletions.
2 changes: 1 addition & 1 deletion common/src/js/bot/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bot.action.isTextual = function(element) {

if (tagName == goog.dom.TagName.INPUT) {
var type = element.type.toLowerCase();
return type == 'text' || type == 'password';
return type == 'text' || type == 'password' || type == 'email';
}

return false;
Expand Down
1 change: 1 addition & 0 deletions common/src/web/formPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
There should be a form here:

<form method="get" action="resultPage.html" name="login">
<input type="email" id="email"/>
<input type="submit" id="submitButton" value="Hello there"/>
</form>

Expand Down
5 changes: 4 additions & 1 deletion common/test/js/bot/keys_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @param {string} input Value to type into textbox.
*/
function runTypingTest(input) {
var inputIds = ['textbox', 'password', 'textarea'];
var inputIds = ['textbox', 'password', 'email', 'textarea'];
var countBox = document.getElementById('change_count');

for (var i = 0; i < inputIds.length; i++) {
Expand Down Expand Up @@ -72,6 +72,9 @@
<input type="password" id="password"
oninput="incrCount();"
onpropertychange="incrCount();">
<input type="email" id="email"
oninput="incrCount();"
onpropertychange="incrCount();">
<textarea id="textarea"
oninput="incrCount();"
onpropertychange="incrCount();"></textarea>
Expand Down
Loading

0 comments on commit 6cf69e0

Please sign in to comment.