B2G/gecko/toolkit/components/places/tests/head_common.js
/**
 * Removes all bookmarks and checks for correct cleanup
 */
Removes all bookmarks and checks for correct cleanup
Removes all bookmarks and checks for correct cleanup
function remove_all_bookmarks() {
  let PU = PlacesUtils;
  PU.bookmarks.removeFolderChildren(PU.bookmarks.bookmarksMenuFolder);
  PU.bookmarks.removeFolderChildren(PU.bookmarks.toolbarFolder);
  PU.bookmarks.removeFolderChildren(PU.bookmarks.unfiledBookmarksFolder);
  check_no_bookmarks();
}
function remove_all_bookmarks ( ) { let PU = PlacesUtils ; PU . bookmarks . removeFolderChildren ( PU . bookmarks . bookmarksMenuFolder ) ; PU . bookmarks . removeFolderChildren ( PU . bookmarks . toolbarFolder ) ; PU . bookmarks . removeFolderChildren ( PU . bookmarks . unfiledBookmarksFolder ) ; check_no_bookmarks ( ) ; }
Removes all bookmarks and checks for correct cleanup
Removes all bookmarks and checks for correct cleanup
// Clear all bookmarks // Check for correct cleanup