Closed Bug 578373 Opened 14 years ago Closed 14 years ago

Update Tabbed Browsing API for Tab Animation

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronmt, Assigned: whimboo)

References

()

Details

(Keywords: regression, Whiteboard: [lib][mozmill-doc-needed])

Attachments

(3 files, 2 obsolete files)

Currently, Mozmill tab manipulating tests such as bug 552594 and bug 557799 are failing on trunk.

With bug 543206, when we open new tabs, via middle click or right click context menu, we will have to add an event listener to the testTabbedBrowsingAPI that will listen for 'transitionend'.
Summary: [mozmill] Update Tabbed Browsing API for Tab Animation → [shared module] Update Tabbed Browsing API for Tab Animation
Whiteboard: [mozmill-test-failure]
Right, adding an event listener for 'transitionend' should do the trick. We should also check for the tab closing animation, once it has been landed on bug 380960.
No longer blocks: 543206
Depends on: 380960, 543206
Blocks: 581037
No longer blocks: 581037
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][mozmill-doc-needed]
Attachment #460074 - Flags: review?(anthony.s.hughes)
Component: Mozmill → Mozmill Tests
QA Contact: mozmill → mozmilltests
Whiteboard: [mozmill-test-failure][mozmill-doc-needed] → [shared module]
Attachment #460074 - Flags: review?(anthony.s.hughes) → review+
Comment on attachment 460074 [details] [diff] [review]
Patch v1 (default) [checked-in]

Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/4e75e1a2e03a
Attachment #460074 - Attachment description: Patch v1 (default) → Patch v1 (default) [checked-in]
Summary: [shared module] Update Tabbed Browsing API for Tab Animation → Update Tabbed Browsing API for Tab Animation
Attached patch Patch (1.9.2/1.9.1) (obsolete) — Splinter Review
Backport to use the TabOpen event for older branches.
Attachment #461172 - Flags: review?(anthony.s.hughes)
Comment on attachment 461172 [details] [diff] [review]
Patch (1.9.2/1.9.1)

> var MODULE_NAME = 'TabbedBrowsingAPI';
> 
>+// Include necessary modules
>+var RELATIVE_ROOT = '.';
>+var MODULE_REQUIRES = ['UtilsAPI'];
>+
> const gTimeout = 5000;
> 
> const tabsBrowser = '/id("main-window")/id("browser")/id("appcontent")/id("content")';
> const tabsStrip = tabsBrowser + '/anon({"anonid":"tabbox"})/anon({"anonid":"strip"})';
> const tabsContainer = tabsStrip + '/anon({"anonid":"tabcontainer"})/anon({"class":"tabs-stack"})/{"class":"tabs-container"}';
> const tabsArrowScrollbox = tabsContainer + '/anon({"anonid":"arrowscrollbox"})';
> 

nit: Can we update this module to use ALL_CAPS for const names to come in line with our test and coding style guidelines?
Attachment #461172 - Flags: review?(anthony.s.hughes) → review-
That shouldn't be part of this bug. Once we rewrite all our shared modules we will take this into account.
Comment on attachment 461172 [details] [diff] [review]
Patch (1.9.2/1.9.1)

Reasking for review. Please see my last comment.
Attachment #461172 - Flags: review- → review?(anthony.s.hughes)
With bug 380960 our closeTab() method of the tabBrowser class needs the update asap because it breaks all of our tests which make use of tabbed browsing with the upcoming Mozmill 1.4.2 release. I will work on the implementation later today.
Attachment #461172 - Flags: review?(anthony.s.hughes)
Attachment #461172 - Attachment is obsolete: true
Attached patch Patch v1 (obsolete) — Splinter Review
Our default behavior to work with tabs shouldn't take care of the tab animation. It slows down the test execution drastically. If there are no other automated tests we should create a special test for animation in a later stage.

For now, we will disable the animation and simply listen for the TabOpen and TabClose events.
Attachment #464808 - Flags: review?(anthony.s.hughes)
Now without the accidental changes in other tests.
Attachment #464808 - Attachment is obsolete: true
Attachment #464811 - Flags: review?(anthony.s.hughes)
Attachment #464808 - Flags: review?(anthony.s.hughes)
Attachment #464811 - Flags: review?(anthony.s.hughes) → review+
Comment on attachment 464811 [details] [diff] [review]
Follow-up v1.1 (default) [checked-in]

Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/e9537b619d93
Attachment #464811 - Attachment description: Follow-up v1.1 (default) → Follow-up v1.1 (default) [checked-in]
Verified fixed with this http://hg.mozilla.org/qa/mozmill-tests/rev/e9537b619d93, the problem yesterday is eliminated
This is a combined backport patch for the already checked-in patches. Lets get this landed on the branches too, except the tab animation lines.
Attachment #464848 - Flags: review?(anthony.s.hughes)
Attachment #464848 - Flags: review?(anthony.s.hughes) → review+
Backport patch landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/652f73dde65f (1.9.2)
http://hg.mozilla.org/qa/mozmill-tests/rev/088eb8b86608 (1.9.1)
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [shared module] → [shared module][mozmill-doc-needed]
Move of Mozmill Test related project bugs to newly created components. You can
filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Version: Trunk → unspecified
Component: Mozmill Tests → Mozmill Shared Modules
Component: Mozmill Shared Modules → Mozmill Tests
Whiteboard: [shared module][mozmill-doc-needed] → [lib]
Whiteboard: [lib] → [lib][mozmill-doc-needed]
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: