Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / indent-button-crash.html
blob7fa5f812147855c5f59e137127af34470550b4ee
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
6 var scriptElements = document.getElementsByTagName('script');
7 for (var i = 0; i < scriptElements.length; i++) {
8 scriptElements[i].parentNode.removeChild(scriptElements[i]);
11 document.addEventListener('DOMCharacterDataModified', function() {
12 document.execCommand('Indent');
13 });
15 document.addEventListener('selectstart', function() {
16 var element = event.srcElement;
17 element.insertAdjacentElement('beforebegin', document.createElement('foo'));
18 element.insertAdjacentHTML('beforebegin', '<bar1><bar2><bar3>abc');
19 });
21 onload = function() {
22 document.execCommand('SelectAll', false);
23 document.designMode = 'on';
24 window.getSelection().getRangeAt(0).deleteContents();
25 document.body.textContent = 'PASS if Blink doesn\'t crash.';
27 </script>
28 <style>
29 *:read-write {
30 -webkit-appearance: push-button;
32 </style>
33 <link>