From ccf29d742d82ec63c57f6ada3c29376dd108bb9b Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Mon, 6 Jan 2014 12:54:44 -0800 Subject: [PATCH] document.register -> document.registerElement --- test/html/smoke.html | 8 ++++---- test/html/styling/polyfill-directive.html | 12 +++++------- test/html/styling/register.js | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/test/html/smoke.html b/test/html/smoke.html index ccfedc9..79d1868 100644 --- a/test/html/smoke.html +++ b/test/html/smoke.html @@ -22,13 +22,13 @@ p.createdCallback = function() { this.textContent = 'custom!'; } - document.register('x-foo', {prototype: p}); + document.registerElement('x-foo', {prototype: p}); // var p = Object.create(HTMLButtonElement.prototype); p.createdCallback = function() { this.textContent = 'custom!'; } - document.register('x-baz', {prototype: p, extends: 'button'}); + document.registerElement('x-baz', {prototype: p, extends: 'button'}); document.body.appendChild(document.createElement('button', 'x-baz')).id = 'baz2'; // assert.equal(document.querySelector('x-foo').textContent, 'custom!', @@ -40,11 +40,11 @@ 'button is=x-baz can be created via document.createElement(button, x-baz)'); // var p = Object.create(HTMLElement.prototype); - p.enteredViewCallback = function() { + p.attachedCallback = function() { this.textContent = 'custom!'; } // - document.register('x-zot', {prototype: p}); + document.registerElement('x-zot', {prototype: p}); // var xfoo = document.querySelector('x-foo'); var root = xfoo.createShadowRoot(); diff --git a/test/html/styling/polyfill-directive.html b/test/html/styling/polyfill-directive.html index dcb52a0..117121b 100644 --- a/test/html/styling/polyfill-directive.html +++ b/test/html/styling/polyfill-directive.html @@ -23,20 +23,18 @@