Closed
Bug 630838
Opened 13 years ago
Closed 13 years ago
Clear document.popupNode between b-c tests
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla2.0b12
People
(Reporter: mak, Assigned: mak)
References
Details
Attachments
(1 file, 1 obsolete file)
2.16 KB,
patch
|
Details | Diff | Splinter Review |
A browser-chrome test can set document.popupNode to a custom value, to check a context menu functionality, or a command, or whatever. Unfortunately it's hard to ensure that all tests will then cleanup it correctly on shutdown, indeed I can find at least 6 b-c tests not doing it, plus in case of failure/timeout there is risk the cleanup doesn't run (actually they should instead use registerCleanupFunction...). Not clearing it is problematic, since some next text could really test a popup opening and expect document.popupNode to be meaningful. Since it's easy to handle this at the harness level I think we can do it as an additional protection against oranges.
Assignee | ||
Comment 1•13 years ago
|
||
some blaming: http://mxr.mozilla.org/mozilla-central/search?string=document.popupNode&find=browser_
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #509078 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 3•13 years ago
|
||
on try: http://tbpl.mozilla.org/?tree=MozillaTry&rev=bf8b20c1e851
Comment 4•13 years ago
|
||
Comment on attachment 509078 [details] [diff] [review] patch v1.0 r=mano. I'm not sure what's the policy for testing/, so keeping the request for gavin. If you know it's enough though, go ahead and land it.
Attachment #509078 -
Flags: review+
Comment 5•13 years ago
|
||
Comment on attachment 509078 [details] [diff] [review] patch v1.0 Can you put it before the setDuration block? Doesn't make much difference but it's easier conceptually to put all the "cleanup" together.
Attachment #509078 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 6•13 years ago
|
||
yes, I will do. I did not put it there because it's not part of the test-defined-code... but as you said won't make much difference.
Assignee | ||
Comment 7•13 years ago
|
||
Addressed Gavin's comment.
Attachment #509078 -
Attachment is obsolete: true
Assignee | ||
Comment 8•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/dc93a523cdbd
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b12
Updated•6 years ago
|
Component: BrowserTest → Mochitest
You need to log in
before you can comment on or make changes to this bug.
Description
•