3 if (window
.testRunner
) {
4 testRunner
.waitUntilDone();
5 testRunner
.dumpAsText();
16 if (i
== 20 * af
.length
) {
18 document
.body
.innerHTML
+= "<p>Test for crbug.com/338982. Passes if it does not crash</p>";
19 document
.body
.innerHTML
+= "<p>PASS</p>";
20 clearInterval(setIntervalId
);
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
26 af
[i
++ % af
.length
]();
30 document
.designMode
="on";
31 document
.execCommand("SelectAll");
33 window
._Document_0
= document
;
40 document
.execCommand("Underline", false);
45 window
._Selection_0
= window
._Document_0
.getSelection();
52 document
.execCommand("InsertParagraph");
57 window
._Selection_0
.modify("move", "forward", "line");
61 document
.execCommand("Delete", false);
65 document
.execCommand("Indent");
69 document
.execCommand("InsertOrderedList");
70 document
.execCommand("InsertImage", false);
73 af
.push(function() {});
74 af
.push(function() {});
75 af
.push(function() {});
77 document
.addEventListener("DOMNodeInserted", main
, false);
78 setIntervalId
= setInterval(main
, 10);