summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 23:29:10 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:22 -0500
commit53c9b77ed41aebb157012eff5e57cad3a962d18e (patch)
tree774cec41db2f86d1621497b7df20899bc9255622 /dom/tests/mochitest
parente6733c9278d0e9687be83de5b5f409a43653fbee (diff)
downloadUXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar.gz
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar.lz
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar.xz
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.zip
Bug 1315885 - Part 4: Implement callback reaction for custom element reactions.
Note: Skipped SyncInvokeReactions since it is removed in CE v1, waste of time. Tag UXP Issue #1344
Diffstat (limited to 'dom/tests/mochitest')
-rw-r--r--dom/tests/mochitest/webcomponents/test_document_register_stack.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/tests/mochitest/webcomponents/test_document_register_stack.html b/dom/tests/mochitest/webcomponents/test_document_register_stack.html
index 34f108654..b1c61af11 100644
--- a/dom/tests/mochitest/webcomponents/test_document_register_stack.html
+++ b/dom/tests/mochitest/webcomponents/test_document_register_stack.html
@@ -28,7 +28,8 @@ function testChangeAttributeInCreatedCallback() {
createdCallbackCalled = true;
is(attributeChangedCallbackCalled, false, "Attribute changed callback should not have been called prior to setting the attribute.");
this.setAttribute("foo", "bar");
- is(attributeChangedCallbackCalled, false, "While element is being created, element should not be added to the current element callback queue.");
+ is(attributeChangedCallbackCalled, true, "While element is being created, element should be added to the current element callback queue.");
+ runNextTest();
};
p.attributeChangedCallback = function(name, oldValue, newValue) {
@@ -36,7 +37,6 @@ function testChangeAttributeInCreatedCallback() {
is(attributeChangedCallbackCalled, false, "attributeChanged callback should only be called once in this tests.");
is(newValue, "bar", "The new value should be 'bar'");
attributeChangedCallbackCalled = true;
- runNextTest();
};
document.registerElement("x-one", { prototype: p });