Bug 1415416 - Part 2. Add test. r=masayuki

MozReview-Commit-ID: 5Bbh5ifPSs7

--HG--
extra : rebase_source : 07cabbc6f2ed00018c4b6a3ce8eebe121cb7998f
This commit is contained in:
Makoto Kato 2018-01-11 18:39:40 +09:00
parent 81d105c639
commit 12f318b242
4 changed files with 52 additions and 0 deletions

View File

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

View File

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

View File

@ -307,6 +307,8 @@ support-files =
bug1354478-6-ref.html bug1354478-6-ref.html
bug1359411.html bug1359411.html
bug1359411-ref.html bug1359411-ref.html
bug1415416.html
bug1415416-ref.html
image_rgrg-256x256.png image_rgrg-256x256.png
input-invalid-ref.html input-invalid-ref.html
input-maxlength-invalid-change.html input-maxlength-invalid-change.html

View File

@ -193,6 +193,7 @@ var tests = [
[ 'bug1354478-5.html' , 'bug1354478-5-ref.html'] , [ 'bug1354478-5.html' , 'bug1354478-5-ref.html'] ,
[ 'bug1354478-6.html' , 'bug1354478-6-ref.html'] , [ 'bug1354478-6.html' , 'bug1354478-6-ref.html'] ,
[ 'bug1359411.html' , 'bug1359411-ref.html' ] , [ 'bug1359411.html' , 'bug1359411-ref.html' ] ,
[ 'bug1415416.html' , 'bug1415416-ref.html' ] ,
function() {SpecialPowers.pushPrefEnv({'clear': [['layout.accessiblecaret.enabled']]}, nextTest);} , function() {SpecialPowers.pushPrefEnv({'clear': [['layout.accessiblecaret.enabled']]}, nextTest);} ,
]; ];