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)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
People
(Reporter: Gavin, Assigned: mak)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.82 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•16 years ago
|
Assignee: nobody → mak77
| Assignee | ||
Comment 1•16 years ago
|
||
Prevent click event, this will avoid the visit.
Attachment #381481 -
Flags: review?(gavin.sharp)
| Reporter | ||
Comment 2•16 years ago
|
||
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-
| Assignee | ||
Comment 3•16 years ago
|
||
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
| Assignee | ||
Comment 4•16 years ago
|
||
hm, could be i've attached wrong patch since the one i recall included removing the early return.
| Assignee | ||
Comment 5•16 years ago
|
||
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
| Assignee | ||
Updated•16 years ago
|
Attachment #381655 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 6•16 years ago
|
||
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?
| Reporter | ||
Comment 7•16 years ago
|
||
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).
| Assignee | ||
Comment 8•16 years ago
|
||
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.
| Reporter | ||
Updated•16 years ago
|
Attachment #381655 -
Flags: review?(gavin.sharp) → review+
| Reporter | ||
Comment 9•16 years ago
|
||
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!
| Assignee | ||
Comment 10•16 years ago
|
||
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.
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [can land]
| Assignee | ||
Comment 11•16 years ago
|
||
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.
Description
•