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

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

Issue 117313008: Update Custom Elements API to new names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for forgotten tests. Created 7 years 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <div id="container"></div> 3 <div id="container"></div>
4 <script> 4 <script>
5 description('Tests that custom element constructors run the createdCallback sync hronously.'); 5 description('Tests that custom element constructors run the createdCallback sync hronously.');
6 6
7 var proto = Object.create(HTMLElement.prototype); 7 var proto = Object.create(HTMLElement.prototype);
8 var ncallbacks = 0; 8 var ncallbacks = 0;
9 proto.createdCallback = function () { 9 proto.createdCallback = function () {
10 ncallbacks++; 10 ncallbacks++;
11 }; 11 };
12 var A = document.register('x-a', {prototype: proto}); 12 var A = document.registerElement('x-a', {prototype: proto});
13 var x = new A(); 13 var x = new A();
14 shouldBe('ncallbacks', '1'); 14 shouldBe('ncallbacks', '1');
15 15
16 successfullyParsed = true; 16 successfullyParsed = true;
17 </script> 17 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/custom/callback-context.html ('k') | LayoutTests/fast/dom/custom/created-callback.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698