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

Side by Side Diff: LayoutTests/fast/html/imports/import-custom-element-onload.html

Issue 259503007: Flush microtask before event handlers are invoked (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added an expected.txt file. 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 <!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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698