| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 5 <script src="../../fast/dom/resources/event-sender-util.js"></script> | 5 <script src="../../fast/dom/resources/event-sender-util.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 | 8 |
| 9 <p>In this test, we do execCommand('Indent') in the direct child of ShadowRoot | 9 <p>In this test, we do execCommand('Indent') in the direct child of ShadowRoot |
| 10 to confirm a crash doesn't happen.</p> | 10 to confirm a crash doesn't happen.</p> |
| 11 | 11 |
| 12 <div id="container" contenteditable></div> | 12 <div id="container" contenteditable></div> |
| 13 <pre id="console"></div> | 13 <pre id="console"></div> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 var shadowRoot = container.createShadowRoot(); | 16 var shadowRoot = container.createShadowRoot(); |
| 17 shadowRoot.innerHTML = "<span contenteditable>Kotori Otonashi</span>" | 17 shadowRoot.innerHTML = "<span contenteditable>Kotori Otonashi</span>" |
| 18 var span = shadowRoot.firstChild; | 18 var span = shadowRoot.firstChild; |
| 19 | 19 |
| 20 mouseMoveToElem(span); | 20 mouseMoveToElem(span); |
| 21 eventSender.mouseDown(); | 21 eventSender.mouseDown(); |
| 22 eventSender.mouseUp(); | 22 eventSender.mouseUp(); |
| 23 | 23 |
| 24 document.execCommand('Indent'); | 24 document.execCommand('Indent'); |
| 25 | 25 |
| 26 var successfullyParsed = true; | 26 var successfullyParsed = true; |
| 27 </script> | 27 </script> |
| 28 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 29 </body> | 28 </body> |
| 30 | 29 |
| 31 </html> | 30 </html> |
| OLD | NEW |