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

Unified Diff: LayoutTests/fast/dom/custom/isolated-world.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
« no previous file with comments | « LayoutTests/fast/dom/custom/frameElement-crash.html ('k') | LayoutTests/fast/dom/custom/leaks.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/custom/isolated-world.html
diff --git a/LayoutTests/fast/dom/custom/isolated-world.html b/LayoutTests/fast/dom/custom/isolated-world.html
index 3f79bb28880a12f5e090f3140731c5c1b95ef0f7..61d08d12ee6c0f120e8ea0e00cc74972ac8b7723 100644
--- a/LayoutTests/fast/dom/custom/isolated-world.html
+++ b/LayoutTests/fast/dom/custom/isolated-world.html
@@ -28,7 +28,7 @@ result = testRunner.evaluateScriptInIsolatedWorldAndReturnValue(
' console.log(this.id + " entered (isolated)"); ' +
' }; ' +
' try { ' +
- ' document.register("x-a", {extends: "span", prototype: proto}); ' +
+ ' document.registerElement("x-a", {extends: "span", prototype: proto}); ' +
' return "register succeeded"; ' +
' } catch (e) { ' +
' return e.code; ' +
@@ -47,10 +47,10 @@ shouldBe('a.__proto__', 'HTMLSpanElement.prototype',
var proto = Object.create(HTMLSpanElement.prototype);
invocations = [];
-proto.enteredViewCallback = function () {
+proto.attachedCallback = function () {
invocations.push(this.id + ' entered (main)');
};
-document.register('x-a', {extends: 'span', prototype: proto});
+document.registerElement('x-a', {extends: 'span', prototype: proto});
shouldBe('invocations', '["y entered (main)"]',
'only the element in the document should generate entered events');
« no previous file with comments | « LayoutTests/fast/dom/custom/frameElement-crash.html ('k') | LayoutTests/fast/dom/custom/leaks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698