Bug 559759 - add a11y mochitests for <input type=email>, r=marcoz, f=surkov

This commit is contained in:
Mark Capella 2012-04-25 12:12:31 +09:00
parent 7b3289d675
commit e25627eae3
2 changed files with 28 additions and 0 deletions

View File

@ -110,6 +110,7 @@
testStates("autocomplete-list", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION); testStates("autocomplete-list", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
testStates("autocomplete-list2", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION); testStates("autocomplete-list2", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
testStates("autocomplete-tel", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION); testStates("autocomplete-tel", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
testStates("autocomplete-email", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
SimpleTest.finish(); SimpleTest.finish();
} }
@ -235,5 +236,12 @@
<input id="autocomplete-list2" list="cities" autocomplete="off"> <input id="autocomplete-list2" list="cities" autocomplete="off">
<input id="autocomplete-tel" type="tel"> <input id="autocomplete-tel" type="tel">
Email Address:
<input id="autocomplete-email" type="email" list="contacts" value="xyzzy">
<datalist id="contacts">
<option>xyzzy@plughs.com</option>
<option>nobody@mozilla.org</option>
</datalist>
</body> </body>
</html> </html>

View File

@ -90,6 +90,19 @@
testAccessibleTree("txc6", accTree); testAccessibleTree("txc6", accTree);
// input@type="email", value
accTree = {
role: ROLE_ENTRY,
children: [
{ // text child
role: ROLE_TEXT_LEAF,
children: []
}
]
};
testAccessibleTree("txc7", accTree);
SimpleTest.finish(); SimpleTest.finish();
} }
@ -132,5 +145,12 @@
<input id="txc5" type="password" value="hello"> <input id="txc5" type="password" value="hello">
<input id="txc6" type="tel" value="4167771234"> <input id="txc6" type="tel" value="4167771234">
Email Address:
<input id="txc7" type="email" list="contacts" value="xyzzy">
<datalist id="contacts">
<option>xyzzy@plughs.com</option>
<option>nobody@mozilla.org</option>
</datalist>
</body> </body>
</html> </html>