Bug 1275833 - Update wpt and test_interfaces.html. r=smaug, wchen
authorJohn Dai <jdai@mozilla.com>
Thu, 21 Jul 2016 23:44:00 +0200
changeset 348656 b419dd976981a2d24f5bdc22fe7ba7ca675213fc
parent 348655 13a2ea0523a8ba7cf2e5067093b280f356ae572b
child 348657 8b510c6b911acb2c9a401b06955656219c0a3503
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, wchen
bugs1275833
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275833 - Update wpt and test_interfaces.html. r=smaug, wchen
dom/tests/mochitest/general/test_interfaces.html
testing/web-platform/meta/custom-elements/custom-elements-registry/define.html.ini
--- a/dom/tests/mochitest/general/test_interfaces.html
+++ b/dom/tests/mochitest/general/test_interfaces.html
@@ -374,16 +374,18 @@ var interfaceNamesInGlobalScope =
     "CSSSupportsRule",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "CSSTransition", release: false},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "CSSValue",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "CSSValueList",
 // IMPORTANT: Do not change this list without review from a DOM peer!
+    "CustomElementsRegistry",
+// IMPORTANT: Do not change this list without review from a DOM peer!
     "CustomEvent",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "DataChannel",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     {name: "DataErrorEvent", b2g: true},
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "DataTransfer",
 // IMPORTANT: Do not change this list without review from a DOM peer!
--- a/testing/web-platform/meta/custom-elements/custom-elements-registry/define.html.ini
+++ b/testing/web-platform/meta/custom-elements/custom-elements-registry/define.html.ini
@@ -1,5 +1,148 @@
 [define.html]
   type: testharness
-  ["window.customElements.define" should exists]
+  [If constructor is arrow function, should throw a TypeError]
+    expected: FAIL
+  [If constructor is method, should throw a TypeError]
+    expected: FAIL
+  [Element names: defining an element named a- should succeed]
+    expected: FAIL
+  [Element names: defining an element named a-a should succeed]
+    expected: FAIL
+  [Element names: defining an element named aa- should succeed]
+    expected: FAIL
+  [Element names: defining an element named aa-a should succeed]
+    expected: FAIL
+  [Element names: defining an element named a-.-_ should succeed]
+    expected: FAIL
+  [Element names: defining an element named a-0123456789 should succeed]
+    expected: FAIL
+  [Element names: defining an element named a-漢字 should succeed]
+    expected: FAIL
+  [Element names: defining an element named a-𠀋 should succeed]
+    expected: FAIL
+  [Element names: defining an element named undefined should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named null should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named  should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named - should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named a should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named input should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named mycustomelement should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named A should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named A- should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named 0- should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named a-A should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named a-Z should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named A-a should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named a-a× should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named a-a  should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named a-a󰀀 should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named annotation-xml should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named color-profile should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named font-face should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named font-face-src should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named font-face-uri should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named font-face-format should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named font-face-name should throw a SyntaxError]
+    expected: FAIL
+  [Element names: defining an element named missing-glyph should throw a SyntaxError]
+    expected: FAIL
+  [If the name is already defined, should throw a NotSupportedError]
+    expected: FAIL
+  [If the constructor is already defined, should throw a NotSupportedError]
     expected: FAIL
-
+  [If extends is a-, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is a-a, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is aa-, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is aa-a, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is a-.-_, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is a-0123456789, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is a-漢字, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is a-𠀋, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is bgsound, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is blink, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is isindex, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is multicol, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is nextid, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is spacer, should throw a NotSupportedError]
+    expected: FAIL
+  [If extends is elementnametobeunknownelement, should throw a NotSupportedError]
+    expected: FAIL
+  [If constructor.observedAttributes throws, should rethrow]
+    expected: FAIL
+  [If constructor.prototype throws, should rethrow]
+    expected: FAIL
+  [If Type(constructor.prototype) is undefined, should throw a TypeError]
+    expected: FAIL
+  [If Type(constructor.prototype) is string, should throw a TypeError]
+    expected: FAIL
+  [If constructor.prototype.connectedCallback throws, should rethrow]
+    expected: FAIL
+  [If constructor.prototype.connectedCallback is undefined, should succeed]
+    expected: FAIL
+  [If constructor.prototype.connectedCallback is function, should succeed]
+    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 undefined, should succeed]
+    expected: FAIL
+  [If constructor.prototype.disconnectedCallback is function, should succeed]
+    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.attributeChangedCallback throws, should rethrow]
+    expected: FAIL
+  [If constructor.prototype.attributeChangedCallback is undefined, should succeed]
+    expected: FAIL
+  [If constructor.prototype.attributeChangedCallback is function, should succeed]
+    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