Closed
Bug 1505667
Opened 6 years ago
Closed 6 years ago
SpecialPowers is not defined, in dom/base/test/unit/test_xmlserializer.js
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
5.84 KB,
patch
|
florian
:
review+
|
Details | Diff | Splinter Review |
https://searchfox.org/mozilla-central/source/dom/base/test/unit/test_xmlserializer.js#11
SpecialPowers is not defined in xpcshell test.
this is overlooked because of bug 1498775
patch is coming.
Assignee | ||
Updated•6 years ago
|
Component: JavaScript: Standard Library → DOM
Assignee | ||
Comment 1•6 years ago
|
||
Removed SpecialPowers, and rewrote the test with async, to make sure whole parts are executed.
Attachment #9023516 -
Flags: review?(florian)
Comment 2•6 years ago
|
||
Comment on attachment 9023516 [details] [diff] [review]
Fix undefined reference in dom/base/test/unit/test_xmlserializer.js, with introducing async.
Review of attachment 9023516 [details] [diff] [review]:
-----------------------------------------------------------------
r=me because this is an improvement, but this file is still ugly.
::: dom/base/test/unit/test_xmlserializer.js
@@ +7,4 @@
> if(aFlags == undefined) aFlags = 0;
> if(aCharset == undefined) aCharset = "UTF-8";
>
> + const doc = await do_parse_document(aFile, "text/xml");
nit: 'const' is surprising here. In new code we would use 'let'. If you want to match the existing style of the file, 'var' is fine.
@@ +57,3 @@
>
> // tests on namespaces
> + const doc = await do_parse_document("4_original.xml", "text/xml");
same here.
Attachment #9023516 -
Flags: review?(florian) → review+
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Comment 3•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e7368768dd4518953a9959f6ba525e9a425f49aa
Bug 1505667 - Fix undefined reference in dom/base/test/unit/test_xmlserializer.js, with introducing async. r=florian
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•