mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1359411 - Reftest. (test only: DONTBUILD)
MozReview-Commit-ID: H1y2uTW89i8
This commit is contained in:
parent
112dcab8dc
commit
7da60ffe84
11
layout/base/tests/bug1359411-ref.html
Normal file
11
layout/base/tests/bug1359411-ref.html
Normal 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>
|
12
layout/base/tests/bug1359411.html
Normal file
12
layout/base/tests/bug1359411.html
Normal 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>
|
@ -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
|
||||
|
@ -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);} ,
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user