mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Bug 1334043 - Part 3: Update tests for connected callback.
Tag UXP Issue #1344
This commit is contained in:
parent
befa1027e3
commit
b477c03089
7 changed files with 6 additions and 84 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue