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

Unified Diff: LayoutTests/fast/dom/custom/created-callback.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/created-callback.html
diff --git a/LayoutTests/fast/dom/custom/created-callback.html b/LayoutTests/fast/dom/custom/created-callback.html
index 07362925ab4cc0e7aa5a17fbf345d68ac5e604b8..ea0b735ac6df8a5f7f9979d7a5caf8b92068d0ad 100644
--- a/LayoutTests/fast/dom/custom/created-callback.html
+++ b/LayoutTests/fast/dom/custom/created-callback.html
@@ -25,7 +25,7 @@ test(function() {
get: getter
}
});
- var ctor = document.register('x-a', {prototype: proto});
+ var ctor = document.registerElement('x-a', {prototype: proto});
assert_equals(getterInvocations, 1, 'the created callback must have been retrieved');
proto.createdCallback = failer;
@@ -58,11 +58,11 @@ t.step(function() {
}
var protoB = Object.create(HTMLElement.prototype);
- var B = document.register('x-b', {prototype: protoB});
+ var B = document.registerElement('x-b', {prototype: protoB});
var protoC = Object.create(HTMLElement.prototype);
protoC.createdCallback = created;
- var C = document.register('x-c', {prototype: protoC});
+ var C = document.registerElement('x-c', {prototype: protoC});
var div = document.createElement('div');
div.innerHTML = '<x-c id="t"></x-c>' +
@@ -94,10 +94,10 @@ withFrame(t.step_func(function(frame) {
this.setAttribute('prey', 'gargoyles');
log('created finished');
};
- proto.enteredViewCallback = function() { log('entered'); };
- proto.leftViewCallback = function() { log('left'); };
+ proto.attachedCallback = function() { log('entered'); };
+ proto.detachedCallback = function() { log('left'); };
proto.attributeChangedCallback = function() { log('attribute changed'); };
- var D = frame.contentDocument.register('x-d', {prototype: proto});
+ var D = frame.contentDocument.registerElement('x-d', {prototype: proto});
frame.contentDocument.body.innerHTML = '<x-d></x-d>';
log('done');

Powered by Google App Engine
This is Rietveld 408576698