Closed
Bug 720985
Opened 13 years ago
Closed 13 years ago
Report a failure when a test leaks a global variable
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla13
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(2 files, 1 obsolete file)
2.89 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
2.09 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
this works, but we'll need to whitelist a few expected properties and known failures
Comment 2•13 years ago
|
||
O(n²) :(
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Jesse Ruderman from comment #2)
> O(n²) :(
This is only testing code. As long as it doesn't cause the test suite to take significantly longer, who cares?
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #591436 -
Attachment is obsolete: true
Attachment #591756 -
Flags: review?(gavin.sharp)
Comment 5•13 years ago
|
||
Why do each of those properties need to be in the whitelist?
Assignee | ||
Comment 6•13 years ago
|
||
"navigator", "constructor" and "Application" because they seem to enter the keys list lazily. "__SS_tabsToRestore" are more like known real failures "webConsoleCommandController" and wouldn't be needed ideally.
Comment 7•13 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #3)
> As long as it doesn't cause the test suite to take significantly longer, who cares?
Seems reasonable - did you test whether it has any impact on test suite run time?
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Gavin Sharp (use gavin@gavinsharp.com for email) from comment #7)
> Seems reasonable - did you test whether it has any impact on test suite run
> time?
I tested this on try (linux64/macosx64/win32 x debug/opt) and saw no meaningful difference. Sometimes it took a minute less, sometimes more, most of the time the same. If there's a difference I think it adds up to a few seconds at most. Many single tests probably take longer.
(In reply to Dão Gottwald [:dao] from comment #6)
> "__SS_tabsToRestore" are more like known real failures
> "webConsoleCommandController" and wouldn't be needed ideally.
Hm, that sentence fell apart.
"webConsoleCommandController" and "__SS_tabsToRestore" are more like known real failures and wouldn't be needed ideally.
Assignee | ||
Comment 9•13 years ago
|
||
Updated•13 years ago
|
Attachment #591756 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 10•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Comment 11•13 years ago
|
||
Attachment #594190 -
Flags: review?(dao)
Assignee | ||
Updated•13 years ago
|
Attachment #594190 -
Flags: review?(dao) → review+
Comment 12•13 years ago
|
||
Followup landed: https://hg.mozilla.org/mozilla-central/rev/e9183168a27d
Filed bug 723953 to fix the Fennec tests for real.
Updated•7 years ago
|
Component: BrowserTest → Mochitest
You need to log in
before you can comment on or make changes to this bug.
Description
•