summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dom/tests/mochitest/webcomponents/test_custom_element_callback_innerhtml.html12
-rw-r--r--testing/web-platform/meta/custom-elements/adopted-callback.html.ini3
-rw-r--r--testing/web-platform/meta/custom-elements/connected-callbacks.html.ini48
-rw-r--r--testing/web-platform/meta/custom-elements/reactions/ChildNode.html.ini9
-rw-r--r--testing/web-platform/meta/custom-elements/reactions/Node.html.ini9
-rw-r--r--testing/web-platform/meta/custom-elements/reactions/ParentNode.html.ini6
-rw-r--r--testing/web-platform/meta/custom-elements/reactions/Range.html.ini3
7 files changed, 6 insertions, 84 deletions
diff --git a/dom/tests/mochitest/webcomponents/test_custom_element_callback_innerhtml.html b/dom/tests/mochitest/webcomponents/test_custom_element_callback_innerhtml.html
index 94b02032f..bb5008538 100644
--- a/dom/tests/mochitest/webcomponents/test_custom_element_callback_innerhtml.html
+++ b/dom/tests/mochitest/webcomponents/test_custom_element_callback_innerhtml.html
@@ -16,7 +16,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1102502
SimpleTest.waitForExplicitFinish();
-var attachedCallbackCount = 0;
+var connectedCallbackCount = 0;
var p = Object.create(HTMLElement.prototype);
@@ -24,12 +24,12 @@ p.createdCallback = function() {
ok(true, "createdCallback called.");
};
-p.attachedCallback = function() {
- ok(true, "attachedCallback should be called when the parser creates an element in the document.");
- attachedCallbackCount++;
- // attachedCallback should be called twice, once for the element created for innerHTML and
+p.connectedCallback = function() {
+ ok(true, "connectedCallback should be called when the parser creates an element in the document.");
+ connectedCallbackCount++;
+ // connectedCallback should be called twice, once for the element created for innerHTML and
// once for the element created in this document.
- if (attachedCallbackCount == 2) {
+ if (connectedCallbackCount == 2) {
SimpleTest.finish();
}
}
diff --git a/testing/web-platform/meta/custom-elements/adopted-callback.html.ini b/testing/web-platform/meta/custom-elements/adopted-callback.html.ini
index fdd258bd6..3cb7bc1fb 100644
--- a/testing/web-platform/meta/custom-elements/adopted-callback.html.ini
+++ b/testing/web-platform/meta/custom-elements/adopted-callback.html.ini
@@ -1,8 +1,5 @@
[adopted-callback.html]
type: testharness
- [Inserting a custom element into the owner document must not enqueue and invoke adoptedCallback]
- expected: FAIL
-
[Inserting a custom element into the document of the template elements must enqueue and invoke adoptedCallback]
expected: FAIL
diff --git a/testing/web-platform/meta/custom-elements/connected-callbacks.html.ini b/testing/web-platform/meta/custom-elements/connected-callbacks.html.ini
index d57ab6bdb..c8a99d695 100644
--- a/testing/web-platform/meta/custom-elements/connected-callbacks.html.ini
+++ b/testing/web-platform/meta/custom-elements/connected-callbacks.html.ini
@@ -1,11 +1,5 @@
[connected-callbacks.html]
type: testharness
- [Inserting a custom element into the document must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into the document must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in the document must enqueue and invoke connectedCallback]
expected: FAIL
@@ -15,12 +9,6 @@
[Inserting a custom element into a detached shadow tree that belongs to the document must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into the document of the template elements must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into the document of the template elements must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in the document of the template elements must enqueue and invoke connectedCallback]
expected: FAIL
@@ -30,12 +18,6 @@
[Inserting a custom element into a detached shadow tree that belongs to the document of the template elements must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into a new document must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into a new document must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in a new document must enqueue and invoke connectedCallback]
expected: FAIL
@@ -45,12 +27,6 @@
[Inserting a custom element into a detached shadow tree that belongs to a new document must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into a cloned document must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into a cloned document must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in a cloned document must enqueue and invoke connectedCallback]
expected: FAIL
@@ -60,12 +36,6 @@
[Inserting a custom element into a detached shadow tree that belongs to a cloned document must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into a document created by createHTMLDocument must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into a document created by createHTMLDocument must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in a document created by createHTMLDocument must enqueue and invoke connectedCallback]
expected: FAIL
@@ -75,12 +45,6 @@
[Inserting a custom element into a detached shadow tree that belongs to a document created by createHTMLDocument must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into an HTML document created by createDocument must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into an HTML document created by createDocument must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in an HTML document created by createDocument must enqueue and invoke connectedCallback]
expected: FAIL
@@ -90,12 +54,6 @@
[Inserting a custom element into a detached shadow tree that belongs to an HTML document created by createDocument must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into the document of an iframe must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into the document of an iframe must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in the document of an iframe must enqueue and invoke connectedCallback]
expected: FAIL
@@ -105,12 +63,6 @@
[Inserting a custom element into a detached shadow tree that belongs to the document of an iframe must not enqueue and invoke connectedCallback]
expected: FAIL
- [Inserting a custom element into an HTML document fetched by XHR must enqueue and invoke connectedCallback]
- expected: FAIL
-
- [Inserting an ancestor of custom element into an HTML document fetched by XHR must enqueue and invoke connectedCallback]
- expected: FAIL
-
[Inserting a custom element into a shadow tree in an HTML document fetched by XHR must enqueue and invoke connectedCallback]
expected: FAIL
diff --git a/testing/web-platform/meta/custom-elements/reactions/ChildNode.html.ini b/testing/web-platform/meta/custom-elements/reactions/ChildNode.html.ini
index 4265435e3..637a74dbc 100644
--- a/testing/web-platform/meta/custom-elements/reactions/ChildNode.html.ini
+++ b/testing/web-platform/meta/custom-elements/reactions/ChildNode.html.ini
@@ -1,20 +1,11 @@
[ChildNode.html]
type: testharness
- [before on ChildNode must enqueue a connected reaction]
- expected: FAIL
-
[before on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
- [after on ChildNode must enqueue a connected reaction]
- expected: FAIL
-
[after on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
- [replaceWith on ChildNode must enqueue a connected reaction]
- expected: FAIL
-
[replaceWith on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
diff --git a/testing/web-platform/meta/custom-elements/reactions/Node.html.ini b/testing/web-platform/meta/custom-elements/reactions/Node.html.ini
index 87acc9aa6..e6bacabbd 100644
--- a/testing/web-platform/meta/custom-elements/reactions/Node.html.ini
+++ b/testing/web-platform/meta/custom-elements/reactions/Node.html.ini
@@ -21,21 +21,12 @@
[cloneNode on Node must enqueue an attributeChanged reaction when cloning an element only for observed attributes]
expected: FAIL
- [insertBefore on ChildNode must enqueue a connected reaction]
- expected: FAIL
-
[insertBefore on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
- [appendChild on ChildNode must enqueue a connected reaction]
- expected: FAIL
-
[appendChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
- [replaceChild on ChildNode must enqueue a connected reaction]
- expected: FAIL
-
[replaceChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
diff --git a/testing/web-platform/meta/custom-elements/reactions/ParentNode.html.ini b/testing/web-platform/meta/custom-elements/reactions/ParentNode.html.ini
index ccdf5de7c..b982c66e6 100644
--- a/testing/web-platform/meta/custom-elements/reactions/ParentNode.html.ini
+++ b/testing/web-platform/meta/custom-elements/reactions/ParentNode.html.ini
@@ -1,14 +1,8 @@
[ParentNode.html]
type: testharness
- [prepend on ParentNode must enqueue a connected reaction]
- expected: FAIL
-
[prepend on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
- [append on ParentNode must enqueue a connected reaction]
- expected: FAIL
-
[append on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL
diff --git a/testing/web-platform/meta/custom-elements/reactions/Range.html.ini b/testing/web-platform/meta/custom-elements/reactions/Range.html.ini
index 4ca3fcde7..21de92aa3 100644
--- a/testing/web-platform/meta/custom-elements/reactions/Range.html.ini
+++ b/testing/web-platform/meta/custom-elements/reactions/Range.html.ini
@@ -15,9 +15,6 @@
[cloneContents on Range must enqueue an attributeChanged reaction when cloning an element only for observed attributes]
expected: FAIL
- [insertNode on Range must enqueue a connected reaction]
- expected: FAIL
-
[insertNode on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document]
expected: FAIL