зеркало из https://github.com/mozilla/pjs.git
Bug 559747 - add a11y mochitests for <input type=search>, r=marcoz, f=surkov
This commit is contained in:
Родитель
5abed3268d
Коммит
ffe5e05bfc
|
@ -111,6 +111,7 @@
|
|||
testStates("autocomplete-list2", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
testStates("autocomplete-tel", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
testStates("autocomplete-email", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
testStates("autocomplete-search", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
@ -160,6 +161,7 @@
|
|||
title="Editable state bit should be present on readonly inputs">
|
||||
Mozilla Bug 733382
|
||||
</a>
|
||||
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none"></div>
|
||||
<pre id="test">
|
||||
|
@ -243,5 +245,12 @@
|
|||
<option>nobody@mozilla.org</option>
|
||||
</datalist>
|
||||
|
||||
</br>Search for:
|
||||
<input id="autocomplete-search" type="search" list="searchhisty" value="Gamma">
|
||||
<datalist id="searchhisty">
|
||||
<option>Gamma Rays</option>
|
||||
<option>Gamma Ray Bursts</option>
|
||||
</datalist>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -103,6 +103,19 @@
|
|||
|
||||
testAccessibleTree("txc7", accTree);
|
||||
|
||||
// input@type="search", value
|
||||
accTree = {
|
||||
role: ROLE_ENTRY,
|
||||
children: [
|
||||
{ // text child
|
||||
role: ROLE_TEXT_LEAF,
|
||||
children: []
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
testAccessibleTree("txc8", accTree);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
@ -152,5 +165,12 @@
|
|||
<option>nobody@mozilla.org</option>
|
||||
</datalist>
|
||||
|
||||
</br>Search for:
|
||||
<input id="txc8" type="search" list="searchhisty" value="Gamma">
|
||||
<datalist id="searchhisty">
|
||||
<option>Gamma Rays</option>
|
||||
<option>Gamma Ray Bursts</option>
|
||||
</datalist>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче