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

Side by Side Diff: LayoutTests/fast/dom/custom/registration-context-delete-during-upgrade.html

Issue 117313008: Update Custom Elements API to new names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for forgotten tests. Created 7 years 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="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script src="testutils.js"></script> 3 <script src="testutils.js"></script>
4 <body> 4 <body>
5 <x-a></x-a> 5 <x-a></x-a>
6 <x-a></x-a> 6 <x-a></x-a>
7 <x-a></x-a> 7 <x-a></x-a>
8 <script> 8 <script>
9 if (fork()) { 9 if (fork()) {
10 // The controlling parent frame 10 // The controlling parent frame
11 description('Tests destroying a context during element upgrade.'); 11 description('Tests destroying a context during element upgrade.');
12 jsTestIsAsync = true; 12 jsTestIsAsync = true;
13 successfullyParsed = true; 13 successfullyParsed = true;
14 } else { 14 } else {
15 // The child frame 15 // The child frame
16 16
17 var n = 0; 17 var n = 0;
18 var proto = Object.create(HTMLElement.prototype); 18 var proto = Object.create(HTMLElement.prototype);
19 proto.createdCallback = function () { 19 proto.createdCallback = function () {
20 if (++n == 2) 20 if (++n == 2)
21 destroyContext(); 21 destroyContext();
22 }; 22 };
23 23
24 var A = document.register('x-a', {prototype: proto}); 24 var A = document.registerElement('x-a', {prototype: proto});
25 new A(); 25 new A();
26 done(); 26 done();
27 } 27 }
28 </script> 28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698