| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <div id="container" contenteditable>[<x-foo>Foo</x-foo><div is='x-bar'>Bar</div>
]</div> | 3 <div id="container" contenteditable>[<x-foo>Foo</x-foo><div is='x-bar'>Bar</div>
]</div> |
| 4 <script> | 4 <script> |
| 5 description('This test ensures that the lifecycle callbacks of editing-originate
d elements are visible in the following script block.') | 5 description('This test ensures that the lifecycle callbacks of editing-originate
d elements are visible in the following script block.') |
| 6 window.callbacksCalled = []; | 6 window.callbacksCalled = []; |
| 7 | 7 |
| 8 function ready() { | 8 function ready() { |
| 9 window.callbacksCalled.push(this.tagName); | 9 window.callbacksCalled.push(this.tagName); |
| 10 } | 10 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 window.callbacksCalled = []; | 21 window.callbacksCalled = []; |
| 22 | 22 |
| 23 var selection = window.getSelection(); | 23 var selection = window.getSelection(); |
| 24 selection.selectAllChildren(container); | 24 selection.selectAllChildren(container); |
| 25 document.execCommand('Copy'); | 25 document.execCommand('Copy'); |
| 26 selection.collapseToEnd(); | 26 selection.collapseToEnd(); |
| 27 document.execCommand('Paste'); | 27 document.execCommand('Paste'); |
| 28 shouldBe('window.callbacksCalled', '[]'); | 28 shouldBe('window.callbacksCalled', '[]'); |
| 29 </script> | 29 </script> |
| 30 <script> | 30 <script> |
| 31 shouldBe('window.callbacksCalled', '[\'X-FOO\', \'DIV\']'); | 31 shouldBe('window.callbacksCalled', '[\'DIV\', \'X-FOO\']'); |
| 32 | 32 |
| 33 container.remove(); | 33 container.remove(); |
| 34 | 34 |
| 35 successfullyParsed = true; | 35 successfullyParsed = true; |
| 36 </script> | 36 </script> |
| 37 <script src="../../js/resources/js-test-post.js"></script> | 37 <script src="../../js/resources/js-test-post.js"></script> |
| 38 | 38 |
| OLD | NEW |