Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / crash-on-clear-selection.html
blobac82efa6f2f4ab0ff326cdafe93fa0aed27d9f45
1 If this doesn't crash, then the test passes.
2 <div id=foo>foo</div>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var foo = document.getElementById('foo');
8 window.getSelection().selectAllChildren(foo);
10 foo.style.display = 'none';
11 window.getSelection().removeAllRanges();
12 </script>