зеркало из https://github.com/mozilla/pjs.git
Bug 559759 - add a11y mochitests for <input type=email>, r=marcoz, f=surkov
This commit is contained in:
Родитель
cb5273c12a
Коммит
3cdd54adbe
|
@ -110,6 +110,7 @@
|
|||
testStates("autocomplete-list", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
testStates("autocomplete-list2", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
testStates("autocomplete-tel", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
testStates("autocomplete-email", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
@ -235,5 +236,12 @@
|
|||
<input id="autocomplete-list2" list="cities" autocomplete="off">
|
||||
<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>
|
||||
</html>
|
||||
|
|
|
@ -90,6 +90,19 @@
|
|||
|
||||
testAccessibleTree("txc6", accTree);
|
||||
|
||||
// input@type="email", value
|
||||
accTree = {
|
||||
role: ROLE_ENTRY,
|
||||
children: [
|
||||
{ // text child
|
||||
role: ROLE_TEXT_LEAF,
|
||||
children: []
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
testAccessibleTree("txc7", accTree);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
@ -132,5 +145,12 @@
|
|||
<input id="txc5" type="password" value="hello">
|
||||
<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>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче