Closed
Bug 863456
Opened 11 years ago
Closed 10 years ago
Report failures for tests that leave unexpected tabs or windows behind
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla25
People
(Reporter: mossop, Assigned: mossop)
References
Details
Attachments
(2 files)
Some of our tests look likely due to earlier tests not waiting for tabs or windows to close before continuing. This patch adds a check after every test function that verifies there is only one window open containing one tab. If not it logs everything that is open. I found about 30 tests that fail this so there are fixes for those cases. In addition I made getTabs ignore tabs that are in the process of closing. This is necessary because when the callback for tab.close() is called the tab still exists in the XUL since the tabbrowser TabClose event is dispatched before removal so listeners can inspect the tab element.
Assignee | ||
Comment 1•11 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•11 years ago
|
Attachment #739285 -
Flags: review?(poirot.alex)
Comment 2•11 years ago
|
||
Comment on attachment 739285 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/953 As you are used to say: Ship it! See pull request comment, but I think that we should really tune tabbrowser to avoid other test race conditions in a followup.
Attachment #739285 -
Flags: review?(poirot.alex) → review+
Comment 3•11 years ago
|
||
Oh and btw, have you tested this patch on Fennec?
Assignee | ||
Comment 4•11 years ago
|
||
Ah right, looks like addon-page leaves something open permanently on Fennec, also bug 863502 :(
Priority: -- → P1
Comment 7•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/d9d01d18a5492b2bcbfb145236b0bd77d4232db5 Bug 863456: Report failures for tests that leave unexpected tabs or windows behind. r=ochameau
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Comment 8•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/a4c75202281d4c716439d15ba38cc78f56f73e24 Revert "Bug 863456: Report failures for tests that leave unexpected tabs or windows behind. r=ochameau" This reverts commit d9d01d18a5492b2bcbfb145236b0bd77d4232db5.
Assignee | ||
Comment 9•11 years ago
|
||
This introduced a random orange on linux: https://tbpl.mozilla.org/php/getParsedLog.php?id=25741115&tree=Jetpack
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 10•10 years ago
|
||
Can we land this again and try to deal with the orange?
Flags: needinfo?(dtownsend+bugmail)
Assignee | ||
Comment 11•10 years ago
|
||
We need to fix the orange before we can land again, unfortunately I was foolish and didn't save the log so I've no idea what it was :( I don't know when I'll have time to play with this, anyone else is welcome to pick it up
Flags: needinfo?(dtownsend+bugmail)
Assignee | ||
Comment 12•10 years ago
|
||
This fixes the problems with the last patch and had some 5 green runs on try.
Attachment #8409010 -
Flags: review?(rFobic)
Comment 13•10 years ago
|
||
Comment on attachment 8409010 [details] [review] updated patch I just made one comment that I think it's worth addressing, but I would rather land this and do it as a separate patch.
Attachment #8409010 -
Flags: review?(rFobic) → review+
Comment 14•10 years ago
|
||
This is really exciting, sorry to take so long to review this.
Comment 15•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/934c61db28e2a395c90a8dd82ceb3a3530d00e17 Bug 863456: Report failures for tests that leave unexpected tabs or windows behind. https://github.com/mozilla/addon-sdk/commit/400bd5cbacaa0f79f7b0ef4c8400c0945ee04844 Merge pull request #1466 from Mossop/bug863456 Bug 863456: Report failures for tests that leave unexpected tabs or windows behind. r=gozala
Assignee | ||
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 11 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 16•10 years ago
|
||
I filed bug 1004514 for the follow-up
You need to log in
before you can comment on or make changes to this bug.
Description
•