| Index: LayoutTests/editing/execCommand/format-block-uneditable-crash.html
|
| diff --git a/LayoutTests/editing/execCommand/format-block-uneditable-crash.html b/LayoutTests/editing/execCommand/format-block-uneditable-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..947b814a8b5d2665ed3d6abbfd4d812d328c394d
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/execCommand/format-block-uneditable-crash.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<pre id="sample" contenteditable="true">
|
| +foo
|
| +<div contenteditable="false">bar
|
| +</div>
|
| +
|
| +</pre>
|
| +<div id="log"></div>
|
| +<script>
|
| +test(function() {
|
| + var container = document.getElementById('sample');
|
| + var range = document.createRange()
|
| + range.setEndAfter(container.lastChild);
|
| + window.getSelection().addRange(range);
|
| + document.execCommand('formatblock', false, '<h1>');
|
| +}, 'formatblock');
|
| +</script>
|
|
|