test_457441-import-export-corrupt-bookmarks-html.js File Reference

Go to the source code of this file.

Functions

function run_test ()
 
function database_check ()
 

Variables

var hs
 
var dbConn = hs.QueryInterface(Ci.nsPIPlacesDatabase).DBConnection
 
var bs
 
var as
 
var lms
 
var icos
 
var ps
 
var ies
 
const DESCRIPTION_ANNO = "bookmarkProperties/description"
 
const LOAD_IN_SIDEBAR_ANNO = "bookmarkProperties/loadInSidebar"
 
const POST_DATA_ANNO = "bookmarkProperties/POSTData"
 
const TEST_FAVICON_PAGE_URL = "http://en-US.www.mozilla.com/en-US/firefox/central/"
 
const TEST_FAVICON_DATA_URL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg=="
 

Function Documentation

function database_check ( )

Definition at line 119 of file test_457441-import-export-corrupt-bookmarks-html.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function run_test ( )

Definition at line 69 of file test_457441-import-export-corrupt-bookmarks-html.js.

Here is the call graph for this function:

Variable Documentation

var as
Initial value:
= Cc["@mozilla.org/browser/annotation-service;1"].
getService(Ci.nsIAnnotationService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 50 of file test_457441-import-export-corrupt-bookmarks-html.js.

var bs
Initial value:
= Cc["@mozilla.org/browser/nav-bookmarks-service;1"].
getService(Ci.nsINavBookmarksService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 48 of file test_457441-import-export-corrupt-bookmarks-html.js.

var dbConn = hs.QueryInterface(Ci.nsPIPlacesDatabase).DBConnection
const DESCRIPTION_ANNO = "bookmarkProperties/description"
var hs
Initial value:
= Cc["@mozilla.org/browser/nav-history-service;1"].
getService(Ci.nsINavHistoryService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 45 of file test_457441-import-export-corrupt-bookmarks-html.js.

var icos
Initial value:
= Cc["@mozilla.org/browser/favicon-service;1"].
getService(Ci.nsIFaviconService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 54 of file test_457441-import-export-corrupt-bookmarks-html.js.

var ies
Initial value:
= Cc["@mozilla.org/browser/places/import-export-service;1"].
getService(Ci.nsIPlacesImportExportService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 58 of file test_457441-import-export-corrupt-bookmarks-html.js.

var lms
Initial value:
= Cc["@mozilla.org/browser/livemark-service;2"].
getService(Ci.nsILivemarkService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 52 of file test_457441-import-export-corrupt-bookmarks-html.js.

const LOAD_IN_SIDEBAR_ANNO = "bookmarkProperties/loadInSidebar"
const POST_DATA_ANNO = "bookmarkProperties/POSTData"
var ps
Initial value:
= Cc["@mozilla.org/preferences-service;1"].
getService(Ci.nsIPrefBranch)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 56 of file test_457441-import-export-corrupt-bookmarks-html.js.

const TEST_FAVICON_DATA_URL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg=="
const TEST_FAVICON_PAGE_URL = "http://en-US.www.mozilla.com/en-US/firefox/central/"