13 window
.console
.log = function() { };
15 if (window
.testRunner
)
16 testRunner
.dumpAsText();
18 document
.designMode
= 'on';
19 var hasRunListener
= false;
20 document
.addEventListener("DOMSubtreeModified", function() {
21 // Avoid calling recursively and generating a ton of log messages
22 if (!hasRunListener
) {
23 hasRunListener
= true;
24 document
.execCommand('JustifyLeft');
28 document
.execCommand("SelectAll", false)
29 var selection
= window
.getSelection();
30 selection
.deleteFromDocument();
31 document
.body
.innerText
= "Test passes if no crash."