Chromium Code Reviews| 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..1afafb2a954829b004288d976d3f2aa3c892a885 |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/custom/type-extension-undo-assert.html |
| @@ -0,0 +1,16 @@ |
| +<!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> |
|
Yuta Kitamura
2013/08/06 09:00:02
Correct me if I'm wrong, but this line creates a H
|
| +<script> |
| +description('Tests that execCommand undo doesn\'t hork custom elements'); |
|
yosin_UTC9
2013/08/06 09:06:07
s/hork/fork/
Yuta Kitamura
2013/08/06 09:28:19
I guess this is a witty way of saying "to mess up"
|
| + |
| +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> |