gecko/editor/libeditor/html/crashtests/448329-2.html
Mats Palmgren 575d767fbd Bug 448329. Make selection code more robust when the selection boundary is not in a block ... Tests.
--HG--
extra : rebase_source : 4a8c3bbd202e6aa0973117b4de81e7885150f50e
2009-02-19 21:01:36 +13:00

22 lines
439 B
HTML

<html>
<head>
<title>Testcase for bug 448329</title>
<script>
function go() {
test("myFrame", "backcolor");
}
function test(id,cmd) {
var doc = document.getElementById(id).contentDocument;
doc.designMode = "On";
var s = doc.defaultView.getSelection();
s.removeAllRanges();
s.addRange(doc.createRange());
doc.queryCommandIndeterm(cmd);
}
</script>
</head>
<body onload="go()"><iframe id="myFrame"></iframe></body>
</html>