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

Unified Diff: LayoutTests/fast/dom/custom/registration-context-isolation.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/registration-context-isolation.html
diff --git a/LayoutTests/fast/dom/custom/registration-context-isolation.html b/LayoutTests/fast/dom/custom/registration-context-isolation.html
index 2be7597ee7287a084afa4fb2ed3dcf1078574b50..302a53f3516c7c70d18aaea422ad26754d71d25a 100644
--- a/LayoutTests/fast/dom/custom/registration-context-isolation.html
+++ b/LayoutTests/fast/dom/custom/registration-context-isolation.html
@@ -30,7 +30,7 @@ testRegisterInAInstantiateInB_shouldNotActivateDefinition = function () {
assert_unreached('creating an x-u in a different context should ' +
'not invoke a callback in this context');
};
- this.documentA.register('x-u', {prototype: protoU});
+ this.documentA.registerElement('x-u', {prototype: protoU});
var container = this.documentB.createElement('div');
container.innerHTML = '<x-u></x-u>';
@@ -51,11 +51,11 @@ testRegisterSameName_definitionsShouldNotConflict = function () {
var protoAV = Object.create(this.windowA.HTMLElement.prototype);
protoAV.createdCallback = created('document A\'s element V');
- this.documentA.register('x-v', {prototype: protoAV});
+ this.documentA.registerElement('x-v', {prototype: protoAV});
var protoBV = Object.create(this.windowB.HTMLElement.prototype);
protoBV.createdCallback = created('document B\'s element V');
- this.documentB.register('x-v', {prototype: protoBV});
+ this.documentB.registerElement('x-v', {prototype: protoBV});
var containerB = this.documentB.createElement('div');
containerB.innerHTML = '<x-v data-doc="document B"></x-v>';
@@ -88,11 +88,11 @@ testRegisterSameName_lazyWrappingShouldNotSharePrototypes = function () {
// callbacks, to try to tickle lazy wrapping.
var protoAW = Object.create(this.windowA.HTMLElement.prototype);
- this.documentA.register('x-w', {prototype: protoAW});
+ this.documentA.registerElement('x-w', {prototype: protoAW});
var protoBW = Object.create(this.windowB.HTMLElement.prototype);
protoBW.createdCallback = function () {};
- this.documentB.register('x-w', {prototype: protoBW});
+ this.documentB.registerElement('x-w', {prototype: protoBW});
var elementA = this.documentA.createElement('x-w');
var elementB = this.documentB.createElement('x-w');

Powered by Google App Engine
This is Rietveld 408576698