Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: LayoutTests/fast/dom/custom/lifecycle-ready-paste.html

Issue 17707002: Implement Custom Elements inserted and removed callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698