Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / selection-forces-unrooted-repaint.html
blob7eb53c968ac31a458a3e4211b9d4a26930231529
1 <!DOCTYPE html>
2 <body>
3 <pre>
5 <span dir="rtl">
6 <ruby>
7 </ruby>
8 <textarea>
10 </textarea>
12 <script>
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');
26 });
28 document.execCommand("SelectAll", false)
29 var selection = window.getSelection();
30 selection.deleteFromDocument();
31 document.body.innerText = "Test passes if no crash."
32 </script>