Closed Bug 381360 Opened 19 years ago Closed 19 years ago

basic bookmarks query test failing

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3 alpha5

People

(Reporter: dietrich, Assigned: dietrich)

Details

Attachments

(2 files)

spun off from bug 381237. failure is here: http://lxr.mozilla.org/mozilla/source/toolkit/components/places/tests/bookmarks/test_bookmarks.js#413 log: *** CHECK FAILED: false == true JS frame :: c:/slave/trunk_2k3/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_throw :: line 99 JS frame :: c:/slave/trunk_2k3/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_check_eq :: line 114 JS frame :: c:/slave/trunk_2k3/mozilla/tools/test-harness/xpcshell-simple/head.js :: do_check_true :: line 118 JS frame :: ../../../../_tests/xpcshell-simple/test_places/bookmarks/test_bookmarks.js :: run_test :: line 413 JS frame :: c:/slave/trunk_2k3/mozilla/tools/test-harness/xpcshell-simple/tail.js :: <TOP_LEVEL> :: line 41 *** exiting
from https://bugzilla.mozilla.org/show_bug.cgi?id=381237#c8 I get these warnings when I run test_bookmarks.js: WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed: file c:/firefox/mozilla/toolkit/components/places/src/nsNavHistory.cpp, line 2224 WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed: file c:/firefox/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 2143 WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed: file c:/firefox/mozilla/toolkit/components/places/src/nsNavHistoryResult.cpp, line 1985
Target Milestone: --- → Firefox 3 alpha5
Assignee: nobody → dietrich
that log was from my windows, debug, trunk build: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070524 Minefield/3.0a5pre I get the same assertions as Dietrich.
Attached file fix v1 —
- fixed query options - fixed test to test itemId properly
Attachment #266155 - Flags: review?(sspitzer)
Attachment #266155 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 266155 [details] fix v1 r=sspitzer, but can you add some LOG() statements that we'll only see on failure, before the checks, indicating what we are checking? when our tests fail: "*** CHECK FAILED: false == true" doesn't help. if they fail, we can use the LOG() to figure out what might be going wrong, or at least, where to start looking.
Attachment #266155 - Flags: review?(sspitzer) → review+
Checking in toolkit/components/places/tests/bookmarks/test_bookmarks.js; /cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v <-- test_bookmarks.js new revision: 1.27; previous revision: 1.26 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
assuming test_bookmarks.js works since this was fixed over 2 months ago without complaint since.
Status: RESOLVED → VERIFIED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: