Closed
Bug 641574
Opened 13 years ago
Closed 13 years ago
Panorama tests require tabview.reset() in teardownModule
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: u279076, Assigned: u279076)
Details
(Whiteboard: [mozmill-functional][mozmill-panorama])
Attachments
(1 file)
Something we missed with the recent tests is to make sure Panorama tests end cleanly. This bug is to make sure all existing tests do so by including tabview.reset() in their teardownModule().
Comment 1•13 years ago
|
||
Ian, can we get a definition of what contentWindow.UI.reset(), does? I don't think every test will need a reset call unless direct manipulation (resize, move, stack, create) of tab group view has occurred.
Call tabView.reset() in teardownModule() of all Panorama tests. I've also included a small refactor to testToggleTabView to remove ambiguity between the tabView module and tabView controller.
Attachment #519210 -
Flags: review?(aaron.train)
Comment 3•13 years ago
|
||
Comment on attachment 519210 [details] [diff] [review] Patch v1 [checked-in] From reading the doc [1], it would make sense to call reset() when one wants to restore the default state of Tab Groups (i.e, one default group), after manipulation has occurred, and does not automatically close additional tabs. http://hg.mozilla.org/labs/tabcandy/raw-file/tip/content/doc/files2/ui-js.html#UI.reset The two landed tests don't do actual manipulations of groups, so adding these calls in are unnecessary.
Attachment #519210 -
Flags: review?(aaron.train) → review-
Comment on attachment 519210 [details] [diff] [review] Patch v1 [checked-in] Henrik, can you give us feedback on this patch and Aaron's concerns in comment 3? Thanks
Attachment #519210 -
Flags: feedback?(hskupin)
Comment 5•13 years ago
|
||
Even tests do not add other groups those tests have to ensure that the tab group view gets closed. tabView.reset() will handle that internally. And yes it does not mess with the opened tabs, because that's really a clean-up routine from the tabs module.
Updated•13 years ago
|
Attachment #519210 -
Flags: feedback?(hskupin) → feedback+
Comment 6•13 years ago
|
||
(In reply to comment #5) > Even tests do not add other groups those tests have to ensure that the tab > group view gets closed. tabView.reset() will handle that internally. And yes it > does not mess with the opened tabs, because that's really a clean-up routine > from the tabs module. Do you mean that .reset() hides Panorama? It does not.
Comment 7•13 years ago
|
||
(In reply to comment #6) > Do you mean that .reset() hides Panorama? It does not. No, I didn't. See the our current implementation: http://hg.mozilla.org/qa/mozmill-tests/file/1ccaf9638b3b/lib/tabview.js#l112
Comment on attachment 519210 [details] [diff] [review] Patch v1 [checked-in] Aaron, given the context of recent comments, can you please re-review this patch? Thanks.
Attachment #519210 -
Flags: review- → review?(aaron.train)
Updated•13 years ago
|
Attachment #519210 -
Flags: review?(aaron.train) → review+
Comment on attachment 519210 [details] [diff] [review] Patch v1 [checked-in] Thanks Aaron -- over to Henrik for follow up.
Attachment #519210 -
Flags: review?(hskupin)
Updated•13 years ago
|
Attachment #519210 -
Flags: review?(hskupin) → review+
Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 519210 [details] [diff] [review] Patch v1 [checked-in] Landed: http://hg.mozilla.org/qa/mozmill-tests/rev/9e12e280ad7f [default] http://hg.mozilla.org/qa/mozmill-tests/rev/2b062ed37b71 [mozilla2.0]
Attachment #519210 -
Attachment description: Patch v1 → Patch v1 [checked-in]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-panorama] → [mozmill-functional][mozmill-panorama]
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•