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

Side by Side Diff: LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously.html

Issue 14711003: Custom Element constructors should synchronously invoke the ready callback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script>
3 <div id="container"></div>
4 <script>
5 description('Tests that custom element constructors run the readyCallback synchr onously.');
6
7 var proto = Object.create(HTMLElement.prototype);
8 var ncallbacks = 0;
9 proto.readyCallback = function () {
10 ncallbacks++;
11 };
12 var A = document.webkitRegister('x-a', {prototype: proto});
13 var x = new A();
14 shouldBe('ncallbacks', '1');
15
16 successfullyParsed = true;
17 </script>
18 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/constructor-calls-ready-synchronously-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698