Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / audio-in-undo-stack-crash.html
blob11ee874aa5c644d09b219d3be4f776f105e1c8cf
1 <div id="container">
2 <iframe></iframe>
3 <div id="sample" contenteditable="true">
4 Foo<audio id="audio" src="bottom"></audio>Bar
5 </div>
6 </div>
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
13 function clearUndoStack() {
14 document.querySelector('iframe').outerHTML = '';
17 function $(id) { return document.getElementById(id); }
18 $('sample').focus();
19 var range = document.createRange();
20 range.selectNodeContents($('sample'));
21 var selection = window.getSelection();
22 selection.removeAllRanges();
23 selection.addRange(range);
25 setTimeout(function() {
26 clearUndoStack();
27 }, 0);
30 window.onload = function() {
31 $('container').outerHTML = 'PASS; NOT CRASHED';
32 if (window.testRunner)
33 testRunner.notifyDone();
36 document.execCommand('Delete', false);
37 document.execCommand('InsertUnorderedList', false);
38 </script>