Adding test for bug 262998.

This commit is contained in:
Boris Zbarsky 2009-03-11 10:21:09 -04:00
parent 555ae1b325
commit 6785b9d204
3 changed files with 28 additions and 0 deletions

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

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

View File

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