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

Unified Diff: LayoutTests/fast/dom/custom/leaks.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/custom/leaks.html
diff --git a/LayoutTests/fast/dom/custom/leaks.html b/LayoutTests/fast/dom/custom/leaks.html
index eac4cbfc5edba1a633bc11e53ce5ce3be8d5ec93..3a4b895f653126775c2063b4a7ca52110e2dc0c2 100644
--- a/LayoutTests/fast/dom/custom/leaks.html
+++ b/LayoutTests/fast/dom/custom/leaks.html
@@ -20,11 +20,11 @@ function step1() {
var proto = Object.create(frame.contentWindow.HTMLElement.prototype);
proto.createdCallback = function () {};
- proto.enteredViewCallback = function () {};
- proto.leftViewCallback = function () {};
+ proto.attachedCallback = function () {};
+ proto.detachedCallback = function () {};
proto.attributeChangedCallback = function () {};
- var ctor = frame.contentDocument.register('x-x', {prototype: proto});
+ var ctor = frame.contentDocument.registerElement('x-x', {prototype: proto});
// Create some instances
@@ -66,7 +66,7 @@ function step2() {
var goodies = [proto, ctor, contentDocument, contentWindow, frame];
goodies.forEach(function (loot) { console.log(loot); });
};
- var ctor = contentDocument.register('x-x', {prototype: proto});
+ var ctor = contentDocument.registerElement('x-x', {prototype: proto});
// Create an instance; put it in the document
var elem = new ctor();
@@ -104,7 +104,7 @@ function step3() {
var goodies = [proto, ctor, contentDocument, contentWindow, frame];
goodies.forEach(function (loot) { console.log(loot); });
};
- var ctor = contentDocument.register('x-x', {prototype: proto});
+ var ctor = contentDocument.registerElement('x-x', {prototype: proto});
// Create an instance; put it in the document *and* point to
// it from the window.

Powered by Google App Engine
This is Rietveld 408576698