mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 559759 - add a11y mochitests for <input type=email>, r=marcoz, f=surkov
This commit is contained in:
parent
7b3289d675
commit
e25627eae3
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user