diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-05 15:59:55 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:50:29 -0500 |
commit | 01dfbc928f45caccc5d27704a0e98d61e92a64f1 (patch) | |
tree | e426dde4a30a853988e03effbc8fdf0c17271035 /dom/tests/mochitest | |
parent | 3d4c4100912132141881f40e90ddbd3aba8b0737 (diff) | |
download | UXP-01dfbc928f45caccc5d27704a0e98d61e92a64f1.tar UXP-01dfbc928f45caccc5d27704a0e98d61e92a64f1.tar.gz UXP-01dfbc928f45caccc5d27704a0e98d61e92a64f1.tar.lz UXP-01dfbc928f45caccc5d27704a0e98d61e92a64f1.tar.xz UXP-01dfbc928f45caccc5d27704a0e98d61e92a64f1.zip |
Bug 1334043 - Part 3: Update tests for connected callback.
Tag UXP Issue #1344
Diffstat (limited to 'dom/tests/mochitest')
-rw-r--r-- | dom/tests/mochitest/webcomponents/test_custom_element_callback_innerhtml.html | 12 |
1 files changed, 6 insertions, 6 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(); } } |