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

Side by Side Diff: LayoutTests/fast/html/imports/resources/import-custom-element-helper.js

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added and revised tests Created 6 years, 8 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
(Empty)
1
2 function registerTestingCustomElement(tagName) {
3 var definition = function() {};
4 definition.ids = [];
5 definition.prototype = Object.create(HTMLElement.prototype);
6 definition.prototype.createdCallback = function() { definition.ids.push(this .id); }
7 document.registerElement(tagName, definition);
8 return definition;
dominicc (has gone to gerrit) 2014/04/25 02:39:45 Why not just set up the prototype and return the g
9 }
10
11 function ImportTestLatch(test, count) {
12 this.loaded = function() {
13 count--;
14 if (!count)
15 test();
16 };
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698