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

This commit is contained in:
Mark Capella 2012-04-26 20:12:29 +09:00
Родитель 779e01fd9c
Коммит 6f3d67585a
2 изменённых файлов: 29 добавлений и 0 удалений

Просмотреть файл

@ -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>