Closed Bug 603675 Opened 14 years ago Closed 14 years ago

Test failure in testUndoTabFromContextMenu.js | testTabbedBrowsingAPI (default)

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronmt, Assigned: aaronmt)

References

()

Details

(Keywords: regression, Whiteboard: [lib][mozmill-test-failure][needs-mozmill-1.5.1])

Attachments

(2 files, 1 obsolete file)

MODULES: firefox/testSessionStore/testUndoTabFromContextMenu.js TEST: testUndoTabFromContextMenu.js ERROR: Controller.assertJSProperty(ID: context_undoCloseTab) : true == false BRANCH: default We seem to be opening navigation bar context menu when we want to be opening the tab bar context menu. Changing the targeted element to 'tabs_strip' still produces this issue. Side note: The assert should also be changed to assertDOMProperty.
That's exactly the bug Jeff is catching with in the last day on a box beside his desktop. Interesting that it now also appears on brasstacks. It still works fine locally. So this is getting more interesting. (In reply to comment #0) > Side note: The assert should also be changed to assertDOMProperty. No, there is no disabled property attached to the DOM. It's a property of the JS object. And instead of the strip we should also right click the first tab. The strip itself will not show the tab context menu.
(In reply to comment #0) > MODULES: firefox/testSessionStore/testUndoTabFromContextMenu.js > TEST: testUndoTabFromContextMenu.js > ERROR: Controller.assertJSProperty(ID: context_undoCloseTab) : true == false > BRANCH: default > > We seem to be opening navigation bar context menu when we want to be opening > the tab bar context menu. Changing the targeted element to 'tabs_strip' still > produces this issue. > > Side note: The assert should also be changed to assertDOMProperty. I saw this on OS X 32 bit. Is this where you see it as well?
On brasstacks it's happening on Windows and Linux too. Aaron, if you can reproduce it would be great if you could provide a patch. That failure blocks us from getting the tests into buildbot. If you can't please tell me and I will check the test on qa-horus itself.
Keywords: regression
Am able to reproduce on OSX and Linux, have not tried Windows. Assuming the replace of getElement with getTab, the nav toolbar still opens instead. |var tabBar = tabBrowser.getTab(0);|
The above works with tabs on bottom. I think it's just a targeting issue the position where we are clicking.
This same regression is also hurting testCloseTab.js and testNewTab.js as both work with tabs on bottom.
Can you test with my patch from the events branch: http://github.com/whimboo/mozmill/commits/events I wonder if this will fix this problem.
It probably will because the rounded corners will not be the problem anymore. Remember those are at the top left for tabs on top. When we click at (2,2) we end up outside of the tab.
Yep, your events branch fixes this issue when I change the element we want to click on to getTab at its index. As well, your events branch fixes the tabbedBrowsing tests. I'll post a patch for this test in a minute.
Attached patch Patch v1 - (default) (obsolete) — Splinter Review
This patch and test will pass once 1.5.1 is released with your events patch.
Assignee: nobody → aaron.train
Status: NEW → ASSIGNED
Attachment #482610 - Flags: review?(hskupin)
Depends on: 583604
Default to the selectedIndex in getTab()
Attachment #482610 - Attachment is obsolete: true
Attachment #482624 - Flags: review?(hskupin)
Attachment #482610 - Flags: review?(hskupin)
Comment on attachment 482624 [details] [diff] [review] Patch v1 - (default) Makes absolutely sense. Does this patch apply cleanly for older branches?
Attachment #482624 - Flags: review?(hskupin) → review+
Summary: [shared module] Test failure in testUndoTabFromContextMenu.js | testTabbedBrowsingAPI (default) → Test failure in testUndoTabFromContextMenu.js | testTabbedBrowsingAPI (default)
Whiteboard: [mozmill-test-failure] → [mozmill-test-failure][shared module]
1.9.2 and 1.9.1
Comment on attachment 482656 [details] [diff] [review] Patch v1 - (1.9.2 & 1.9.1) Landed backport: http://hg.mozilla.org/qa/mozmill-tests/rev/b46cf069ad7d (mozilla1.9.2) http://hg.mozilla.org/qa/mozmill-tests/rev/43b12508e3b8 (mozilla1.9.1) I will leave this bug open until the dependencies have been fixed.
Attachment #482656 - Flags: review?(hskupin) → review+
Whiteboard: [mozmill-test-failure][shared module] → [mozmill-test-failure][shared module][needs-mozmill-1.5.1]
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
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: Mozmill Tests → Mozmill Shared Modules
Component: Mozmill Shared Modules → Mozmill Tests
Whiteboard: [mozmill-test-failure][shared module][needs-mozmill-1.5.1] → [lib]
Whiteboard: [lib] → [lib][mozmill-test-failure][needs-mozmill-1.5.1]
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: