Bug 1359411 - Reftest. (test only: DONTBUILD)

MozReview-Commit-ID: H1y2uTW89i8
This commit is contained in:
Mats Palmgren 2017-05-13 21:15:03 +02:00
parent 112dcab8dc
commit 7da60ffe84
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html><head><style>
i:before{content:"X"}
</style></head><body onload="runTest()"><div><button type="button"><i></i></button><p></p></div><editor contenteditable="true">focus me, then press the UP key</editor>
<script>
function runTest() {
document.body.offsetHeight;
var e = document.querySelector('editor');
e.focus()
}
</script>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html><head><script src="/tests/SimpleTest/EventUtils.js"></script><style>
i:before{content:"X"}
</style></head><body onload="runTest()"><div><button type="button"><i></i></button><p></p></div><editor contenteditable="true" onfocus="sendKey('UP')">focus me, then press the UP key</editor>
<script>var e = document.querySelector('editor'); e.focus()</script>
<script>
function runTest() {
document.body.offsetHeight;
var e = document.querySelector('editor');
e.focus()
}
</script>

View File

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

View File

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