gecko-dev/toolkit/components/places/tests/unit
Shawn Wilsher 63d8572077 Bug 476292 - Crashes on startup on OS X and Linux [@ nsNavBookmarks::IsRealBookmark] [@ PL_DHashTableOperate]
This fixes a crash when we initialize nsNavBookmarks with a database that is out
of date (the schema version is less than the current one).  Because the bookmark
service initializes the history service in its Init method, and the history
service tries to get the bookmark service if the database needs an upgrade, we
try to re-enter the bookmark service's constructor.  Bad things happen.

Adds a test to ensure that we don't do this again.

r=dietrich
r=MaK77
2009-02-03 21:58:21 -05:00
..
bug476292.sqlite Bug 476292 - Crashes on startup on OS X and Linux [@ nsNavBookmarks::IsRealBookmark] [@ PL_DHashTableOperate] 2009-02-03 21:58:21 -05:00
expected-favicon-big4.jpg.png Bug 403181, revert more bogus test images 2008-03-09 16:53:48 -07:00
expected-favicon-big16.ico.png Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
expected-favicon-big32.jpg.png Bug 403181, revert more bogus test images 2008-03-09 16:53:48 -07:00
expected-favicon-big48.ico.png Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
expected-favicon-big64.png.png Bug 403181, revert more bogus test images 2008-03-09 16:53:48 -07:00
expected-favicon-scale3x160.jpg.png Bug 403181, revert more bogus test images 2008-03-09 16:53:48 -07:00
expected-favicon-scale160x3.jpg.png Bug 403181, revert more bogus test images 2008-03-09 16:53:48 -07:00
favicon-big4.jpg Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-big16.ico Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-big32.jpg Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-big48.ico Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-big64.png Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-normal16.png Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-normal32.png Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-scale3x160.jpg Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
favicon-scale160x3.jpg Bug 389273 - large favicons (>32 KB) won't show up in url bar autocomplete, history / bookmarks menu, bm organizer. r=sspitzer, stuart. a1.9=schrep 2008-01-12 20:15:20 -08:00
head_bookmarks.js Bug 460947 - fsync stuff has a wrong query for expiration sites cap 2008-10-27 18:52:23 -04:00
history_import_test.dat Bug 454977 - remove INSERT OR REPLACE to avoid error prone paths with views, r=dietrich 2009-01-13 11:48:25 +01:00
history.dat Bug 329741 - history.dat, formhistory.dat, downloads.rdf should be deleted when the user clears private data, r=gavin 2008-03-18 05:54:23 -07:00
nsDynamicContainerServiceSample.js
tail_bookmarks.js
test_000_frecency.js Bug 449406 - bookmarks of TRANSITION_DOWNLOAD and TRANSITION_EMBED don't show up in the location bar if they've been visited 2009-01-27 21:01:33 -05:00
test_248970.js Bug 248970 - Private Browsing mode (global toggle for saving/caching everything) [Places unit test fix]; r=dietrich 2008-11-04 02:52:22 +03:30
test_317472.js Bug 317472 - "Save custom encoding (last charset) in annotation service" [p=mak77@supereva.it (Marco Bonardo [mak77]) r=dietrich r=Mano a=blocking-firefox3+] 2008-04-08 11:41:04 -07:00
test_331487.js Bug 385245 ? history sidebar very slow (way slower than fx2) (for ondrej@allpeers.com, r=dietrich) 2008-02-26 20:48:51 -08:00
test_385397.js Bug 406937 ? Fix places tests using milliseconds for APIs that require microseconds (for ondrej@allpeers.com, r=dietrich) 2008-01-23 13:23:13 -08:00
test_399264_query_to_string.js Bug 399264 - stop hard coding folder roots in place: urls. r=dietrich 2008-03-15 12:39:04 -07:00
test_399264_string_to_query.js Bug 399264 - stop hard coding folder roots in place: urls. r=dietrich 2008-03-15 12:39:04 -07:00
test_399266.js Bug 406937 ? Fix places tests using milliseconds for APIs that require microseconds (for ondrej@allpeers.com, r=dietrich) 2008-01-23 13:23:13 -08:00
test_399606.js Bug 399606 - Places counts auto-refreshes as page visits. Patch by Dietrich Ayala <dietrich@mozilla.com>, Seth Spitzer <moco@sspitzer.org>, and Shawn Wilsher <me@shawnwilsher.com>. r=dietrich, a=beltzner. Note, this is mostly tests with a three line code change. If this goes orange, please don't panic 2008-01-31 14:17:00 -08:00
test_402799.js Bug 402799: Saved searches that match on tags show duplicates, patch by Marco Bonardo <mak77@supereva.it>, r=dietrich, a=beltzner 2008-04-29 12:16:42 -07:00
test_404630.js supplimental fix for bug #404630: Faviconize Tab extension causes a crash @ nsNavHistory::LazyMessage::Init r=thunder, a=blocking-firefox3+ 2007-11-21 16:44:33 -08:00
test_405497.js Bug 405497 - Calling RunInBatchedMode within a RunBatched implementation hangs. r=Mano 2008-02-21 20:09:08 -08:00
test_408221.js Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
test_412132.js Bug 412132 - after changing a bookmark's location, need to update the frecency of the "old" uri, r=dietrich 2009-01-13 11:48:27 +01:00
test_413784.js Bug 415397 - URLs with (un)escaped characters can't be deleted. b-ff3=beltzner 2008-03-12 16:40:01 -07:00
test_415460.js Bug 415460 - searching in places queries does not decode urls. r=dietrich, b-ff3=beltzner 2008-02-26 22:25:40 -08:00
test_415757.js Bug 415757 ? RemovePagesFromHost could delete wrong items/annotation (r=dietrich, a=schrep) 2008-02-08 14:13:29 -08:00
test_418643_removeFolderChildren.js Bug 418643 - Bookmark folder deletion executes too many SQL statements (r=dietrich) 2008-11-05 14:02:12 -08:00
test_419731.js Relanding Bug 444432 - Mozilla2 Tinderbox 'qm-win2k3-moz2-01': test_places/unit/test_419731.js: FAIL 2008-07-11 16:00:41 +03:00
test_419792_node_tags_property.js Bug 419792 - Use optimized query to get tags for nsNavHistoryResultNode (r=mano) 2008-11-05 10:20:00 -08:00
test_420331_wyciwyg.js Bug 420331 - wyciwyg: uris show up in location bar (r=mardak) 2008-09-29 23:46:52 -07:00
test_421180.js Bug 444763 - Use an unshared cache connection instead of a shared one 2008-08-16 18:23:24 -04:00
test_425563.js Test for Bug 425563 - Clicked links not colored as visited, or visited color forgotten after hard refresh (for mak77@supereva.it, r=dietrich) 2008-04-02 09:26:32 -07:00
test_429505_remove_shortcuts.js Bug 429505 - OnItemRemoved() fails to live-update for children that are folder-shortcuts (r=mano, a=damon) 2008-04-19 10:58:54 -07:00
test_433317_query_title_update.js pushing test for bug 433317, forgot to check-in initially 2008-09-29 23:22:46 -07:00
test_433525_hasChildren_crash.js Bug 433525 - crash [@ nsNavHistoryQueryResultNode::IsContainersQuery()] (r=marco, r=mano, a=schrep) 2008-05-23 09:22:54 -07:00
test_451499.js Bug 451499 - wrong folder icon appears on smart bookmarks, r=dietrich 2008-09-06 17:21:55 +02:00
test_452777.js Bug 452777 - regression from lastInsertRowID: Undo folder deletion mix up views 2008-09-03 12:45:20 -04:00
test_454977.js Bug 454977 - remove INSERT OR REPLACE to avoid error prone paths with views, r=dietrich 2009-01-13 11:48:25 +01:00
test_457698_crash.js Bug 457698 - nsNavHistoryFolderResultNode::OnItemAdded ignores dynamic containers, r=dietrich 2008-10-13 18:14:50 +02:00
test_463863.js Bug 463863 - Download history not shown in Places history, r=dietrich, ui-r=beltzner 2008-12-04 13:59:04 +01:00
test_adaptive.js Bug 468400 - xpcshell-simple/test_places/unit/test_adaptive.js | *** TIMEOUT ***: The test timed out while polling database, r=sdwilsh 2009-01-08 00:37:01 +01:00
test_annotations.js Bug 393870 - unable to sort by tags in the bookmark organizer. r=dietrich, sspitzer. 2007-12-20 11:07:58 -08:00
test_browserhistory.js Bug 317472 - "Save custom encoding (last charset) in annotation service" [p=mak77@supereva.it (Marco Bonardo [mak77]) r=dietrich r=Mano a=blocking-firefox3+] 2008-04-08 11:41:04 -07:00
test_crash_476292.js Bug 476292 - Crashes on startup on OS X and Linux [@ nsNavBookmarks::IsRealBookmark] [@ PL_DHashTableOperate] 2009-02-03 21:58:21 -05:00
test_download_history.js Bug 470707 - [SeaMonkey] test_download_history.js fails now, r=dietrich 2008-12-30 22:42:23 +01:00
test_dynamic_containers.js Bug 457686 - appendURINode should not append to a dynamic container if we are inside an excludeItems query, r=dietrich 2008-10-13 18:06:50 +02:00
test_exclude_livemarks.js Bug 407843 - There's no point in passing a bms to lms.createLivemarkFolderOnly/lms._createFolder, r=dietrich, a=schrep 2008-02-08 20:41:35 -08:00
test_expiration.js Bug 412132 - after changing a bookmark's location, need to update the frecency of the "old" uri, r=dietrich 2009-01-13 11:48:27 +01:00
test_favicons.js Bug 442731 - GIF favicons are not resampled in places.sqlite (large icons are stored), r=dietrich, pavlov 2008-09-02 13:59:59 +02:00
test_frecency.js Bug 419749 - Add/Update/Delete for items in query set do not seem to close transaction (r=dietrich) 2008-03-12 16:36:24 -07:00
test_history_autocomplete_tags.js Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
test_history_import.js Bug 454977 - remove INSERT OR REPLACE to avoid error prone paths with views, r=dietrich 2009-01-13 11:48:25 +01:00
test_history_notifications.js Bug 414715 - Notify the user if places.sqlite is locked and bookmarks and history will not work (relanding w/ leak fix, r=marco, r=gavin, l10n-r=pike) 2008-12-30 13:44:55 +01:00
test_history_removeAllPages.js Bug 470429 - nsPlacesDBFlush::onItemAdded should not sync if the item is a container, r=sdwilsh 2009-01-08 00:37:00 +01:00
test_history_sidebar.js Bug 419957 - History sidebar "By Site" should use visit_count to avoid display of empty sites (for ondrej@allpeers.com, r=dietrich, a=beltzner) 2008-05-06 21:33:05 -07:00
test_history.js Bug 454977 - remove INSERT OR REPLACE to avoid error prone paths with views, r=dietrich 2009-01-13 11:48:25 +01:00
test_isvisited.js bug 468341 - Some toolkit places tests fail on SeaMonkey unit test boxes - make tests mor tolerant to default prefs, non-override DOM error messages, non-existing browser-specific services and protcol defintions, r=sdwilsh a=tests-only 2008-12-10 13:18:14 +01:00
test_markpageas.js Bug 385245 ? history sidebar very slow (way slower than fx2) (for ondrej@allpeers.com, r=dietrich) 2008-02-26 20:48:51 -08:00
test_multi_queries.js Bug 420354 ? History not shown in sidebar when sorted by date or by date and site (for ondrej@allpeers.com, r=dietrich) 2008-03-19 14:08:10 -07:00
test_multi_word_tags.js Bug 402799: Saved searches that match on tags show duplicates, patch by Marco Bonardo <mak77@supereva.it>, r=dietrich, a=beltzner 2008-04-29 12:16:42 -07:00
test_nsINavHistoryViewer.js Bug 406937 ? Fix places tests using milliseconds for APIs that require microseconds (for ondrej@allpeers.com, r=dietrich) 2008-01-23 13:23:13 -08:00
test_nsPIPlacesDatabase_commitPendingChanges.js Bug 463471 - temp tables are not correctly synced to disk when the user clear private data on shutdown (r=sdwilsh, r=dietrich) 2008-11-13 22:45:49 -08:00
test_nsPIPlacesDatabase_finalizeInternalStatements.js Bug 476292 - Crashes on startup on OS X and Linux [@ nsNavBookmarks::IsRealBookmark] [@ PL_DHashTableOperate] 2009-02-03 21:58:21 -05:00
test_placeURIs.js Bug 399264 - stop hard coding folder roots in place: urls. r=dietrich 2008-03-15 12:39:04 -07:00
test_preventive_maintenance.js followup to Bug 431558 - implement preventive maintenance for places.sqlite, remove observer on test finish, r=sdwilsh 2008-12-10 11:44:01 +01:00
test_resolveNullBookmarkTitles.js Bug 402799: Saved searches that match on tags show duplicates, patch by Marco Bonardo <mak77@supereva.it>, r=dietrich, a=beltzner 2008-04-29 12:16:42 -07:00
test_result_sort.js Bug 400544 - nsINavHistoryService::addVisit should take a uri for the referrer, not a place id. r=mano, a=beltzner. 2007-12-21 11:43:13 -08:00
test_tag_autocomplete_search.js Bug 469102 - Places Tag Autocomplete breaks with certain tags (Regex escaping) (r=marco) 2008-12-18 12:33:47 -08:00
test_tagging.js Bug 468836 - Existing tags no longer show and cannot be edited, r=dietrich 2008-12-11 15:23:25 +01:00
test_utils_setAnnotationsFor.js Bug 462765 - instant-apply muddies the MRU folder list in the bookmark properties dialog, r=dietrich 2009-01-08 00:37:00 +01:00