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

Side by Side Diff: LayoutTests/fast/dom/custom/element-type.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <body> 3 <body>
4 <span is="x-x" id="a"></span> 4 <span is="x-x" id="a"></span>
5 <script> 5 <script>
6 description('Test that changing an instantiated custom element\'s \'is\' attribu te does not affect its element type.'); 6 description('Test that changing an instantiated custom element\'s \'is\' attribu te does not affect its element type.');
7 shouldBeNonNull('window.testRunner', 'This test requires testRunner.'); 7 shouldBeNonNull('window.testRunner', 'This test requires testRunner.');
8 8
9 // Some custom definition lookup happens at wrapper generation time so 9 // Some custom definition lookup happens at wrapper generation time so
10 // do the change in another world to avoid hiding the bug. 10 // do the change in another world to avoid hiding the bug.
(...skipping 19 matching lines...) Expand all
30 var protoY = Object.create(HTMLSpanElement.prototype); 30 var protoY = Object.create(HTMLSpanElement.prototype);
31 protoY.createdCallback = onCreate('Y'); 31 protoY.createdCallback = onCreate('Y');
32 var Y = document.register('x-y', {extends: 'span', prototype: protoY}); 32 var Y = document.register('x-y', {extends: 'span', prototype: protoY});
33 33
34 var a = document.querySelector('#a'); 34 var a = document.querySelector('#a');
35 shouldBe('a.getAttribute("is")', '"x-y"'); 35 shouldBe('a.getAttribute("is")', '"x-y"');
36 shouldBeTrue('a instanceof X'); 36 shouldBeTrue('a instanceof X');
37 shouldBe('createdBy', '"X"'); 37 shouldBe('createdBy', '"X"');
38 shouldBe('createdCallCount', '1'); 38 shouldBe('createdCallCount', '1');
39 </script> 39 </script>
40 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/custom/document-register-type-extensions.html ('k') | LayoutTests/fast/dom/custom/element-upgrade.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698