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)

defect

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

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.
Component: JavaScript: Standard Library → DOM
Removed SpecialPowers, and rewrote the test with async, to make sure whole parts are executed.
Attachment #9023516 - Flags: review?(florian)
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+
Priority: -- → P2
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
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: