| Index: LayoutTests/fast/dom/custom/type-extension-undo-assert.html
|
| diff --git a/LayoutTests/fast/dom/custom/type-extension-undo-assert.html b/LayoutTests/fast/dom/custom/type-extension-undo-assert.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8c67a6e8078cd2ab758f313f1d8fee66b577a4ed
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/custom/type-extension-undo-assert.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<div id="test" contenteditable><b is="x-a" style="font-style: italic;">Hello, world!</b></div>
|
| +<script>
|
| +// This test is based on
|
| +// editing/undo/replace-by-span-then-remove.html. Fuzzing tickled an
|
| +// assert; this is the reduced test case. Bolding will swap the B for
|
| +// a SPAN; undoing and redoing the command will reapply the "is"
|
| +// attribute to the original custom element.
|
| +
|
| +description('Tests that execCommand undo doesn\'t hork custom elements');
|
| +
|
| +var test = document.getElementById('test');
|
| +window.getSelection().selectAllChildren(test);
|
| +document.execCommand('bold', false, null);
|
| +document.execCommand('undo', false, null);
|
| +document.execCommand('undo', false, null);
|
| +
|
| +testPassed('did not crash');
|
| +var successfullyParsed = true;
|
| +</script>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
|
|