зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1415416 - Part 2. Add test. r=masayuki
MozReview-Commit-ID: 5Bbh5ifPSs7 --HG-- extra : rebase_source : 07cabbc6f2ed00018c4b6a3ce8eebe121cb7998f
This commit is contained in:
Родитель
81d105c639
Коммит
12f318b242
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1415416
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 1415416</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
function runTest()
|
||||
{
|
||||
sendKey("TAB");
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="runTest()">
|
||||
<input id = "text1" type="text" autofocus value=""/>
|
||||
<input id = "text2" type="text" value=""/>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1415416
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 1415416</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
function runTest() {
|
||||
var text = document.getElementById("text1");
|
||||
text.readOnly = false;
|
||||
text.value = "";
|
||||
|
||||
text = document.getElementById("text2");
|
||||
text.readOnly = false;
|
||||
text.value = "";
|
||||
|
||||
sendKey("TAB");
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="runTest()">
|
||||
<input id = "text1" type="text" readonly autofocus value="A" />
|
||||
<input id = "text2" type="text" readonly value="B"/>
|
||||
</body>
|
||||
</html>
|
|
@ -307,6 +307,8 @@ support-files =
|
|||
bug1354478-6-ref.html
|
||||
bug1359411.html
|
||||
bug1359411-ref.html
|
||||
bug1415416.html
|
||||
bug1415416-ref.html
|
||||
image_rgrg-256x256.png
|
||||
input-invalid-ref.html
|
||||
input-maxlength-invalid-change.html
|
||||
|
|
|
@ -193,6 +193,7 @@ var tests = [
|
|||
[ 'bug1354478-5.html' , 'bug1354478-5-ref.html'] ,
|
||||
[ 'bug1354478-6.html' , 'bug1354478-6-ref.html'] ,
|
||||
[ 'bug1359411.html' , 'bug1359411-ref.html' ] ,
|
||||
[ 'bug1415416.html' , 'bug1415416-ref.html' ] ,
|
||||
function() {SpecialPowers.pushPrefEnv({'clear': [['layout.accessiblecaret.enabled']]}, nextTest);} ,
|
||||
];
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче