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

Unified Diff: LayoutTests/fast/dom/custom/callback-context.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/callback-context.html
diff --git a/LayoutTests/fast/dom/custom/callback-context.html b/LayoutTests/fast/dom/custom/callback-context.html
index b96f22c6503cfa27681912ca878b8fc8509b778e..bbb9cbd42af8994f02a6a77c1b82c7f599491125 100644
--- a/LayoutTests/fast/dom/custom/callback-context.html
+++ b/LayoutTests/fast/dom/custom/callback-context.html
@@ -18,7 +18,7 @@ withFrame(function (frame) {
'the context should be the outer window');
});
var doc = frame.contentDocument;
- doc.register('x-a', {prototype: proto});
+ doc.registerElement('x-a', {prototype: proto});
var script = doc.createElement('script');
script.textContent = 'document.body.innerHTML = "<x-a></x-a>";';
doc.body.appendChild(script);
@@ -62,11 +62,11 @@ withFrame(function (frame) {
var script = doc.createElement('script');
script.textContent =
'var proto = Object.create(HTMLElement.prototype); ' +
- 'proto.leftViewCallback = function () { ' +
+ 'proto.detachedCallback = function () { ' +
' window.parent.postMessage(' +
' {step: "assert", name: document.name}, "*");' +
'}; ' +
- 'document.register("x-a", {prototype: proto}); ' +
+ 'document.registerElement("x-a", {prototype: proto}); ' +
'document.body.innerHTML = "<x-a></x-a>"; ' +
'window.parent.postMessage({step: "remove"}, "*");';
doc.body.appendChild(script);

Powered by Google App Engine
This is Rietveld 408576698