summaryrefslogtreecommitdiff
path: root/system/editor/libeditor/crashtests/448329-2.html
blob: fd4707b54c26a886efbdb311a5edf73b0c79f4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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>