OLD | NEW |
(Empty) | |
| 1 |
| 2 function registerTestingCustomElement(tagName) { |
| 3 var definition = function() {}; |
| 4 definition.prototype = Object.create(HTMLElement.prototype); |
| 5 definition.prototype.createdCallback = function() { |
| 6 if (typeof this.constructor.ids === "undefined") |
| 7 this.constructor.ids = []; |
| 8 this.constructor.ids.push(this.id); |
| 9 } |
| 10 |
| 11 var ctor = document.registerElement(tagName, definition); |
| 12 return ctor; |
| 13 } |
| 14 |
| 15 function ImportTestLatch(test, count) { |
| 16 this.loaded = function() { |
| 17 count--; |
| 18 if (!count) |
| 19 test(); |
| 20 }; |
| 21 } |
OLD | NEW |