Closed Bug 1742588 Opened 4 years ago Closed 4 years ago

test_fileconstructor.xhtml isn't actually testing anything

Categories

(Core :: DOM: Content Processes, defect, P2)

defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

I was looking at some ESLint items today, and noticed some undefined variables in dom/base/test/chrome/test_fileconstructor.xhtml.

On closer inspection, the test isn't actually running most of the tests it is intended to. The use of promise chaining, means that the incorrect attempt to set the preference is caught by a later rejection "test" as valid, and hence the test still passes.

Fixing this means the test does pass, so there are no code issues present, though we should obviously fix the test.

Blocks: 1656282
No longer blocks: 1344957
Regressed by: 1344957
Has Regression Range: --- → yes
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/135c60fca4f1 Rewrite test_fileconstructor.xhtml with unix line endings. r=baku https://hg.mozilla.org/integration/autoland/rev/1ea35be32e03 Rewrite test_fileconstructor.xhtml to correctly run its tests. r=baku

Set release status flags based on info from the regressing bug 1344957

Severity: -- → N/A
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: