Closed
Bug 931889
Opened 11 years ago
Closed 11 years ago
Fix and re-enable browser_thumbnails_background.js
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: emorley, Assigned: adw)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
33.13 KB,
patch
|
Details | Diff | Splinter Review |
browser_thumbnails_background.js is really unreliable, particularly on Linux. See dependent bugs.
As such, it has been disabled on Linux for now.
Reporter | ||
Comment 1•11 years ago
|
||
Disabled on Linux by:
remote: https://hg.mozilla.org/mozilla-central/rev/e7439c6c1e81
Whiteboard: [test disabled on linux] [leave open]
Assignee | ||
Comment 2•11 years ago
|
||
This splits up the test like we talked about. It also:
* Modifies the bg tests to use helpers in head.js instead of their own where
possible
* Adds helpers to head.js
* Modifies next() and TestRunner.next() in head.js to take arguments and pass
them to the yielder via _iter.send()
* Drops the privateBrowsingActive and openPrivateWindowDuringCapture tests
since I don't think they're useful anymore, but if you'd like, I can add
them back
Attachment #8334373 -
Flags: review?(mhammond)
Assignee | ||
Comment 3•11 years ago
|
||
iter.send(undefined) works on a newborn iterator, so this head.js change:
> let value = aValue ? TestRunner._iter.send(aValue) :
> TestRunner._iter.next();
can be this instead, since TestRunner.run() calls this.next() with no arguments:
> let value = TestRunner._iter.send(aValue);
I'll batch that change with any other comments you might have.
Comment 4•11 years ago
|
||
Comment on attachment 8334373 [details] [diff] [review]
split 'r up
Review of attachment 8334373 [details] [diff] [review]:
-----------------------------------------------------------------
looks good, sorry for the earlier confusion.
::: toolkit/components/thumbnails/test/browser_thumbnails_bg_queueing.js
@@ +9,5 @@
> + bgTestPageURL({ wait: 2002 }),
> + "http://www.example.com/2",
> + ];
> + urls.forEach(u => ok(!thumbnailExists(u), "Thumbnail should not exist yet"));
> + urls.forEach(function (url) {
might as well use a fat-arrow callback here too
::: toolkit/components/thumbnails/test/head.js
@@ +54,2 @@
> try {
> + let value = aValue ? TestRunner._iter.send(aValue) :
yeah, the simpler version you mentioned would be better.
Attachment #8334373 -
Flags: review?(mhammond) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Assignee: nobody → adw
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•11 years ago
|
||
Tryserver didn't show any oranges that weren't already there, so this is ready to land. After that, I think this bug can be closed and new bugs filed against any new failing tests if necessary.
Attachment #8334373 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 7•11 years ago
|
||
Er, I forgot about the many dependent bugs. I think each can be rescoped to whatever test file they now happen to be failing in.
Comment 8•11 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [test disabled on linux] [leave open] → [fixed-in-fx-team]
Comment 9•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•