Closed Bug 1243317 Opened 9 years ago Closed 9 years ago

browser_UITour_defaultBrowser.js isn't testing anything but would fail on OS X

Categories

(Firefox :: Tours, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1240892

People

(Reporter: MattN, Unassigned)

References

Details

Attachments

(1 file)

WHile making this test work with e10s it began to fail because the test was never waiting for the result before. The problem is that one should either use taskift or the done argument but they shouldn't be mixed since taskify implies you're using a task and so the `done` method will be called automatically then the task is done. Since none of the Task functions yielded anything, the result of the async operation results weren't checked. Jared, the tests fail on my OS X machine now but I'm not sure what the expected results are. Can you build on top of my patch which waits for the checks and fix it so it will pass on all platforms? Thanks
Flags: needinfo?(jaws)
Depends on: 667233
55 INFO TEST-UNEXPECTED-FAIL | browser/components/uitour/test/browser_UITour_defaultBrowser.js | canSetDefaultBrowserInBackground should be true when a hash is present - Got true, expected false Stack trace: chrome://mochikit/content/browser-test.js:test_is:979 chrome://mochitests/content/browser/browser/components/uitour/test/browser_UITour_defaultBrowser.js:test_setInBackgroundWhenPrefExists:67 add_UITour_task/genFun/</</<@chrome://mochitests/content/browser/browser/components/uitour/test/head.js:385:29 SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:735:59
Depends on: 1073247
No longer depends on: 667233
test_setInBackgroundWhenPrefExists and test_setInBackgroundWhenPrefDoesntExist are being removed by bug 1240892, which already landed on mozilla-release and should land on mozilla-central very soon (aurora to follow).
Flags: needinfo?(jaws)
Depends on: 1240892
I'll move the e10s patch to bug 1073247.
Status: NEW → RESOLVED
Closed: 9 years ago
No longer depends on: 1240892
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: