Closed Bug 969397 Opened 12 years ago Closed 12 years ago

Update openTab() and closeTab() from tabs.js in Metro library to wait for the tab animation event

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P2)

All
Windows 8.1
defect

Tracking

(firefox28 wontfix, firefox29 wontfix, firefox30 fixed)

RESOLVED FIXED
Tracking Status
firefox28 --- wontfix
firefox29 --- wontfix
firefox30 --- fixed

People

(Reporter: danisielm, Assigned: danisielm)

References

Details

(Whiteboard: [metro])

Attachments

(1 file, 1 obsolete file)

As we see in our library, in tabs.js , the events TabOpen and TabClose doesn't actually waits for the tab animation to finish. What we need here is to find an event to wait for, or another solution for this. https://hg.mozilla.org/qa/mozmill-tests/file/cbd1d6fa1f51/metrofirefox/lib/ui/tabs.js#l222 https://hg.mozilla.org/qa/mozmill-tests/file/cbd1d6fa1f51/metrofirefox/lib/ui/tabs.js#l283
Assignee: nobody → daniel.gherasim
Status: NEW → ASSIGNED
Attached patch waitForAnimation_Tabs_v1.patch (obsolete) — — Splinter Review
Details about the patch: For waiting for the animation we used the animationend that triggers in both close & open tabs cases, as we can see here: http://mxr.mozilla.org/mozilla-central/source/browser/metro/base/content/browser-ui.js#475
Attachment #8373214 - Flags: review?(andrei.eftimie)
Attachment #8373214 - Flags: review?(andreea.matei)
Blocks: 924077
Comment on attachment 8373214 [details] [diff] [review] waitForAnimation_Tabs_v1.patch Review of attachment 8373214 [details] [diff] [review]: ----------------------------------------------------------------- Great work Daniel. Just 3 small nits: Please update the commit message with a reviewer (r=aeftimie should be fine in this case) ::: metrofirefox/lib/ui/tabs.js @@ +21,5 @@ > assert.fail("A valid controller must be specified"); > } > > this._controller = aController; > + this._tabs = this.getElement({type: "tabsContainer"}); Wondering if we shouldn't name this _tabsContainer to avoid any potential confusion. Also since we are always using the node, we could cache the node directly. So this might be named _tabsContainerNode @@ +229,5 @@ > + animationend: false > + }; > + > + function checkTabOpened() { self.opened = true; } > + function checkTabAnimationend() { self.animationend = true; } I do have 1 nit. Please update the name so its properly camelcased: checkTabAnimationEnd
Attachment #8373214 - Flags: review?(andrei.eftimie)
Attachment #8373214 - Flags: review?(andreea.matei)
Attachment #8373214 - Flags: review-
Thanks, I updated the patch with the requested changes.
Attachment #8373214 - Attachment is obsolete: true
Attachment #8373349 - Flags: review?(andrei.eftimie)
Attachment #8373349 - Flags: review?(andreea.matei)
Priority: -- → P2
Comment on attachment 8373349 [details] [diff] [review] waitForAnimation_Tabs_v1.1.patch Review of attachment 8373349 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Henrik, do you want to take a quick look to this patch?
Attachment #8373349 - Flags: review?(hskupin)
Attachment #8373349 - Flags: review?(andrei.eftimie)
Attachment #8373349 - Flags: review?(andreea.matei)
Attachment #8373349 - Flags: review+
Comment on attachment 8373349 [details] [diff] [review] waitForAnimation_Tabs_v1.1.patch Review of attachment 8373349 [details] [diff] [review]: ----------------------------------------------------------------- That looks fine and I'm happy to see this fixed soon. Thanks.
Attachment #8373349 - Flags: review?(hskupin) → review+
Comment on attachment 8373349 [details] [diff] [review] waitForAnimation_Tabs_v1.1.patch Review of attachment 8373349 [details] [diff] [review]: ----------------------------------------------------------------- Landed: http://hg.mozilla.org/qa/mozmill-tests/rev/0748f762468e (default)
Attachment #8373349 - Flags: checkin+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
This bug is not completely fixed. We have to backport the patch up to beta.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
For now we are not going to backport this.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
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: