Closed
Bug 882068
Opened 11 years ago
Closed 11 years ago
Test failure "linkId.getNode(...) is null" in testSessionStore/testUndoTabFromContextMenu.js with Mozmill 2.0
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(firefox22 fixed, firefox23 fixed, firefox24 fixed, firefox25 fixed, firefox-esr17 fixed)
People
(Reporter: AndreeaMatei, Assigned: AndreeaMatei)
References
Details
(Keywords: regression, Whiteboard: [sprint2013-38][fixed by bug 865641])
Attachments
(3 files, 1 obsolete file)
This is failing with the current state of Mozmill 2.0, I've tested it on Linux and OS X, default branch. I will check windows as well.
* http://mozmill-crowd.blargon7.com/#/functional/report/8aa237803fd4b0e7348adc8bbecae4d7
* http://mozmill-crowd.blargon7.com/#/functional/report/8aa237803fd4b0e7348adc8bbecaabde
Assignee | ||
Updated•11 years ago
|
status-firefox24:
--- → affected
Whiteboard: [mozmill-2.0?]
Assignee | ||
Comment 1•11 years ago
|
||
It's reproducing on Windows as well. It might be a regression somehow, it works with builds previous to 8th June.
Good build: ftp://ftp.mozilla.org/pub/firefox/nightly/2013-06-07-03-10-55-mozilla-central
Bad build: ftp://ftp.mozilla.org/pub/firefox/nightly/2013-06-08-03-12-12-mozilla-central
Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dc8e78ed8c44&tochange=6006abb39d8e
Comment 2•11 years ago
|
||
Do we have a more close pushlog with tinderbox builds? Also can this be a regression in Mozmill with the latest landings? Might be worth to check that too.
Assignee | ||
Comment 3•11 years ago
|
||
I will provide soon a more close pushlog.
I don't think it's a regression in mozmill, I tested with an older version of Mozmill (which has the latest push in 22 May) and it's still failing with the latest nightly, while with the build from 7th June it passes.
Comment 4•11 years ago
|
||
But why it's not failing with Mozmill 1.5? That's the question here.
Assignee | ||
Comment 5•11 years ago
|
||
So I've found this responsible changeset with hg bisect:
http://hg.mozilla.org/mozilla-central/rev/73483f4906a7
And the related tinderbox build for linux 32bit:
ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds/mozilla-central-linux/1370617546
I figure is the event used now, they've replaced "pageshow" with "load" there. I know we're using this in windows.js in 2.0, but I'm not sure why only that test is failing.
Comment 6•11 years ago
|
||
Thank you Andreea. That's good to know. Could you provide a simplified mozmill test which showcases this issue?
Blocks: 878747
Keywords: regression
Assignee | ||
Comment 7•11 years ago
|
||
Here's a simplified testcase. I have removed the code that it's not relevant, found out that selecting a tab and closing it does not interfere in reproducing the issue, neither the empty tab that remains opened from the for loop.
This means that even if we close that empty tab and no longer need to select the second one cause we're automatically there, we also fails to get the ID.
Here we open 2 tabs, select the second one and check the ID there.
Assignee: nobody → andreea.matei
Status: NEW → ASSIGNED
Updated•11 years ago
|
Whiteboard: [mozmill-2.0?] → [mozmill-2.0?][sprint2013-38]
Assignee | ||
Comment 8•11 years ago
|
||
This resulted to be a timing issue, using a small sleep it passed, in order to finish the animation.
So I've found the difference between bad and good behavior is in the innerHTML code. When we're not waiting enough, the label property from innerHTML of the tab will say "Connecting..". When it's done the label will show the index number.
Reports 1.5:
Linux: http://mozmill-crowd.blargon7.com/#/functional/report/206c36485a655b168e7426423731dbdb
OS X: http://mozmill-crowd.blargon7.com/#/functional/report/206c36485a655b168e7426423731f0f2
Windows: http://mozmill-crowd.blargon7.com/#/functional/report/206c36485a655b168e7426423734b128
Reports 2.0:
Linux: I wasn't able to finish it due to that dialog, but I ran the tests that use selectedIndex individually.
OS X: http://mozmill-crowd.blargon7.com/#/functional/report/206c36485a655b168e7426423731d3b4
Windows: I wasn't able to finish it due to the IO completion port error
Attachment #773181 -
Flags: review?(hskupin)
Attachment #773181 -
Flags: review?(dave.hunt)
Assignee | ||
Updated•11 years ago
|
status-firefox22:
--- → affected
status-firefox23:
--- → affected
status-firefox25:
--- → affected
status-firefox-esr17:
--- → affected
Comment 9•11 years ago
|
||
Comment on attachment 773181 [details] [diff] [review]
patch v1
Review of attachment 773181 [details] [diff] [review]:
-----------------------------------------------------------------
::: lib/tabs.js
@@ +129,5 @@
> set selectedIndex(index) {
> this._controller.click(this.getTab(index));
> assert.waitFor(function () {
> + return this.selectedIndex === index &&
> + this._tabs.getNode().innerHTML.indexOf('label="Connecting…"') === -1;
Sorry, but here I have to say ouch. Why do we have to do that? I really don't like that.
If we need something special for sessionstore why we can't call waitForPageLoad() in the test? It's exactly what seems to be necessary here.
Attachment #773181 -
Flags: review?(hskupin)
Attachment #773181 -
Flags: review?(dave.hunt)
Attachment #773181 -
Flags: review-
Updated•11 years ago
|
Whiteboard: [mozmill-2.0?][sprint2013-38] → [sprint2013-38]
Assignee | ||
Comment 10•11 years ago
|
||
Hm, it seems I've overcomplicated the id problem, a simple waitForElement() fixes that. The real issue is that after closing a tab, we don't get the count up in the "Recently closed tabs" and neither the closed tab data from nsISessionStore.
It's not related to selectedIndex but it's due to the switching to another tab. As explained before, we load the page but somehow the innerHTML shows the transition from "Connecting" to the right label isn't over. Also I see a "busy" property when that happens.
Strange that 1.5 doesn't seem to have this problem.
Attachment #762683 -
Attachment is obsolete: true
Assignee | ||
Comment 11•11 years ago
|
||
Assignee | ||
Comment 12•11 years ago
|
||
Actually, it's not reproducing anymore with the waitForPageLoad() fix from bug 865641.
http://mozmill-crowd.blargon7.com/#/functional/report/5aa1ca5e7015e3740d269dc94714f763
Comment 13•11 years ago
|
||
This is not a wontfix here. It actually got fixed by my patch on bug 865641.
Resolution: WONTFIX → FIXED
Whiteboard: [sprint2013-38] → [sprint2013-38][fixed by bug 865641]
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
•