Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / format-block-uneditable-crash.html
blob947b814a8b5d2665ed3d6abbfd4d812d328c394d
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <pre id="sample" contenteditable="true">
5 foo
6 <div contenteditable="false">bar
7 </div>
9 </pre>
10 <div id="log"></div>
11 <script>
12 test(function() {
13 var container = document.getElementById('sample');
14 var range = document.createRange()
15 range.setEndAfter(container.lastChild);
16 window.getSelection().addRange(range);
17 document.execCommand('formatblock', false, '<h1>');
18 }, 'formatblock');
19 </script>