Store lifecycle callbacks when CEs are defined

This implements steps 10.3 - 10.4 of the CustomElementRegistry.define
steps.
This commit is contained in:
Connor Brewster 2017-06-19 13:56:10 -06:00
parent 347cbb0635
commit 901a2028f1
3 changed files with 84 additions and 69 deletions

View file

@ -1,14 +1,5 @@
[CustomElementRegistry.html]
type: testharness
[customElements.define must get callbacks of the constructor prototype]
expected: FAIL
[customElements.define must rethrow an exception thrown while getting callbacks on the constructor prototype]
expected: FAIL
[customElements.define must rethrow an exception thrown while converting a callback value to Function callback type]
expected: FAIL
[customElements.define must get "observedAttributes" property on the constructor prototype when "attributeChangedCallback" is present]
expected: FAIL

View file

@ -3,51 +3,3 @@
[If constructor is arrow function, should throw a TypeError]
expected: FAIL
[If constructor.prototype.connectedCallback throws, should rethrow]
expected: FAIL
[If constructor.prototype.connectedCallback is null, should throw a TypeError]
expected: FAIL
[If constructor.prototype.connectedCallback is object, should throw a TypeError]
expected: FAIL
[If constructor.prototype.connectedCallback is integer, should throw a TypeError]
expected: FAIL
[If constructor.prototype.disconnectedCallback throws, should rethrow]
expected: FAIL
[If constructor.prototype.disconnectedCallback is null, should throw a TypeError]
expected: FAIL
[If constructor.prototype.disconnectedCallback is object, should throw a TypeError]
expected: FAIL
[If constructor.prototype.disconnectedCallback is integer, should throw a TypeError]
expected: FAIL
[If constructor.prototype.adoptedCallback throws, should rethrow]
expected: FAIL
[If constructor.prototype.adoptedCallback is null, should throw a TypeError]
expected: FAIL
[If constructor.prototype.adoptedCallback is object, should throw a TypeError]
expected: FAIL
[If constructor.prototype.adoptedCallback is integer, should throw a TypeError]
expected: FAIL
[If constructor.prototype.attributeChangedCallback throws, should rethrow]
expected: FAIL
[If constructor.prototype.attributeChangedCallback is null, should throw a TypeError]
expected: FAIL
[If constructor.prototype.attributeChangedCallback is object, should throw a TypeError]
expected: FAIL
[If constructor.prototype.attributeChangedCallback is integer, should throw a TypeError]
expected: FAIL