Closed Bug 496266 Opened 16 years ago Closed 16 years ago

unit test for bug 496103 (browser_drag_bookmarks_on_toolbar.js) causes page navigation

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Gavin, Assigned: mak)

References

Details

Attachments

(1 file, 1 obsolete file)

The bookmark drag test was causing a page navigation, which in turn was causing a failure in browser_library_left_pane_commands.js (there were 2 history entries rather than 1 to delete): TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/components/places/tests/browser/browser_library_left_pane_commands.js | Visit has been removed TEST-UNEXPECTED-FAIL | chrome://mochikit/content/browser/browser/components/places/tests/browser/browser_library_left_pane_commands.js | Visit has been removed http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1244087343.1244090418.14714.gz&fulltext=1 https://hg.mozilla.org/mozilla-central/rev/69b64ba05f94
Assignee: nobody → mak77
Attached patch patch v1.0 (obsolete) — Splinter Review
Prevent click event, this will avoid the visit.
Attachment #381481 - Flags: review?(gavin.sharp)
Comment on attachment 381481 [details] [diff] [review] patch v1.0 I applied that patch, and then reverted m-c revision 69b64ba05f94 (the disabling of the second test): http://pastebin.mozilla.org/655320 Unfortunately browser_library_left_pane_commands.js still fails when all browser/components/places tests are run at once: python obj-ff-opt/_tests/testing/mochitest/runtests.py --browser-chrome --test-path=browser/components/places/ and the test still causes mozilla.org to be loaded.
Attachment #381481 - Flags: review?(gavin.sharp) → review-
hm, i tested running all browser-chrome tests without any problem and the page was loading before the patch and not loading after it... that's really strange
hm, could be i've attached wrong patch since the one i recall included removing the early return.
Attached patch patch v1.1Splinter Review
the strange thing is that this patch (that is basically what you have tested) works for me on both windows and linux (With patch in bug 496277). So i'm trying with the tryserver since my mac env is not yet fully functional.
Attachment #381481 - Attachment is obsolete: true
Attachment #381655 - Flags: review?(gavin.sharp)
Comment on attachment 381655 [details] [diff] [review] patch v1.1 trybuilds have not shown any failure in Places tests or in left_pane_commands test, could you please retry?
I've tested that patch again, and it seems to still cause a page navigation (easy to notice by running it alone). I was able to get the entire directory of tests to pass once, but a subsequent run failed in browser_library_left_pane_commands.js again (as in comment 0).
2 subsequent trybuilds have not shown any problem though. nor i can reproduce running the test tens of times on win. my mac env is up and running so i should be able to test there subsequent runs now.
Blocks: 496103
Attachment #381655 - Flags: review?(gavin.sharp) → review+
Comment on attachment 381655 [details] [diff] [review] patch v1.1 I can't reproduce the failures I was seeing earlier, oddly enough, so this will do!
I've run the test about 10 times alone and 10 times the full Places browser-chrome harness, i always got green. Something strange must be happened there, eventually unit test boxes will tell us. I'll wait for m-c full reopen before pushing these, since i want to avoid creating issues to blockers that are still landing.
Whiteboard: [can land]
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [can land]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: