mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 01:59:29 +00:00
Adding test for bug 262998.
This commit is contained in:
parent
555ae1b325
commit
6785b9d204
6
layout/reftests/bugs/262998-1-ref.html
Normal file
6
layout/reftests/bugs/262998-1-ref.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<iframe src="data:text/html,<body style='font-weight: bold; text-align: center'>This is a test</body>"></iframe>
|
||||
</body>
|
||||
</html>
|
21
layout/reftests/bugs/262998-1.html
Normal file
21
layout/reftests/bugs/262998-1.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="reftest-wait">
|
||||
<body onload="setTimeout(doTest,0);">
|
||||
|
||||
<iframe id="edit" style="display:none;" src=""></iframe>
|
||||
|
||||
<script>
|
||||
var x=document.getElementById('edit');
|
||||
function doTest(){
|
||||
x.style.display='block';
|
||||
x.contentDocument.body.innerHTML="This is a test";
|
||||
x.contentDocument.designMode='on';
|
||||
x.contentDocument.execCommand("selectAll", false, "");
|
||||
x.contentDocument.execCommand("bold", false, "");
|
||||
x.contentDocument.execCommand("justifyCenter", false, "");
|
||||
x.contentWindow.getSelection().removeAllRanges();
|
||||
document.documentElement.className = "";
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -216,6 +216,7 @@ skip-if(MOZ_WIDGET_TOOLKIT=="cocoa") != 240536-resizer-ltr.xul 240536-resizer-rt
|
||||
== 255820-1.html 255820-1-ref.html
|
||||
== 261826-1.xul 261826-1-ref.xul
|
||||
== 262151-1.html 262151-1-ref.html
|
||||
== 262998-1.html 262998-1-ref.html
|
||||
#== 263683-1.html 263683-1-ref.html
|
||||
== 267353-1.html 267353-1-ref.html
|
||||
== 271747-1a.html 271747-1-ref.html
|
||||
|
Loading…
x
Reference in New Issue
Block a user