Open
Bug 1426145
Opened 6 years ago
Updated 6 months ago
Fail mochitests tests in case of unexpected TypeError, ReferenceError, SyntaxError
Categories
(Testing :: General, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: Yoric, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
No description provided.
Reporter | ||
Comment 1•6 years ago
|
||
We will undoubtely need some whitelisting and/or prior fixing of oranges: https://treeherder.mozilla.org/#/jobs?repo=try&revision=31b5f971d56d483b52f714cdd5e200877fe73d61&selectedJob=152389078
Updated•6 years ago
|
Priority: -- → P3
Reporter | ||
Comment 3•4 years ago
|
||
This patch ensures that if we have raised a TypeError, SyntaxError or RangeError, we fail the test, even if the error was accidentally caught. This behavior can be deactivated manually as follows:
- either by manually calling
ChromeUtils.clearRecentJSDevError()
after having thrown the error (recommended if the test expected the error to be thrown); - or by calling
PromiseUtils.thisTestLeaksUncaughtRejectionsAndShouldBeFixed()
to postpone fixing the issue.
Depends on D94973
Updated•4 years ago
|
Assignee: nobody → dteller
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•4 years ago
|
||
ahal, you're now in charge :)
Assignee: D.O.Teller+bugspam → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(ahal)
Comment 5•4 years ago
|
||
This is on our team's radar. Can't commit to a time frame at this time.
Flags: needinfo?(ahal)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•