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. |