OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../../resources/testharness.js"></script> | |
5 <script src="../../../resources/testharnessreport.js"></script> | |
6 <script> | |
7 hello = Object.create(HTMLElement.prototype); | |
8 hello.ids = []; | |
9 hello.createdCallback = function() { | |
10 hello.ids.push(this.id); | |
11 }; | |
12 | |
13 document.registerElement('x-hello', {prototype: hello}); | |
14 | |
15 t = async_test('Custom elements are upgraded when onload is called.'); | |
dominicc (has gone to gerrit)
2014/04/25 02:14:50
This isn't clear; use "should be" instead of "are"
| |
16 | |
17 function ready() | |
18 { | |
dominicc (has gone to gerrit)
2014/04/25 02:14:50
Again, I think this brace goes on the previous lin
| |
19 t.step(function() { | |
20 assert_array_equals(["1", "2", "3"], hello.ids); | |
dominicc (has gone to gerrit)
2014/04/25 02:14:50
Stick to one kind of quote character for string li
| |
21 t.done(); | |
22 }); | |
23 } | |
24 </script> | |
25 <link rel="import" href="resources/import-custom-element-onload-child.html" onlo ad="ready()"> | |
26 </head> | |
27 <body> | |
28 </body> | |
29 </html> | |
OLD | NEW |