 var toolbar = rootNode.getChild(2); toolbar.QueryInterface(Ci.nsINavHistoryQueryResultNode); toolbar.containerOpen = true; do_check_eq(toolbar.childCount, 2);   var livemark = toolbar.getChild(1);  do_check_eq("Latest Headlines", livemark.title);  do_check_true(livemarksvc.isLivemark(livemark.itemId));  do_check_eq("http: livemarksvc.getSiteURI(livemark.itemId).spec);  do_check_eq("http: livemarksvc.getFeedURI(livemark.itemId).spec);  toolbar.containerOpen = false; 
  do_check_eq(rootNode.childCount, 4); 
function testCanonicalBookmarks(aFolder) {  // query to see if the deleted folder and items have been imported  var query = histsvc.getNewQuery();  query.setFolders([aFolder], 1);  var result = histsvc.executeQuery(query, histsvc.getNewQueryOptions());  var rootNode = result.root;  rootNode.containerOpen = true;  do_check_eq(rootNode.childCount, 6);  // bookmarks toolbar  var toolbar = rootNode.getChild(2);  toolbar.QueryInterface(Ci.nsINavHistoryQueryResultNode);  toolbar.containerOpen = true;  do_check_eq(toolbar.childCount, 2);    // livemark  var livemark = toolbar.getChild(1);  // title  do_check_eq("Latest Headlines", livemark.title);  // livemark check  do_check_true(livemarksvc.isLivemark(livemark.itemId));  // site url  do_check_eq("http://en-us.fxfeeds.mozilla.com/en-US/firefox/livebookmarks/",              livemarksvc.getSiteURI(livemark.itemId).spec);  // feed url  do_check_eq("http://en-us.fxfeeds.mozilla.com/en-US/firefox/headlines.xml",              livemarksvc.getFeedURI(livemark.itemId).spec);  toolbar.containerOpen = false;  // get test folder  var testFolder = rootNode.getChild(5);  do_check_eq(testFolder.type, testFolder.RESULT_TYPE_FOLDER);  do_check_eq(testFolder.title, "test");  // add date   do_check_eq(bmsvc.getItemDateAdded(testFolder.itemId)/1000000, 1177541020);  // last modified  do_check_eq(bmsvc.getItemLastModified(testFolder.itemId)/1000000, 1177541050);  testFolder = testFolder.QueryInterface(Ci.nsINavHistoryQueryResultNode);  do_check_eq(testFolder.hasChildren, true);  // folder description  do_check_true(annosvc.itemHasAnnotation(testFolder.itemId,                                          DESCRIPTION_ANNO));  do_check_eq("folder test comment",              annosvc.getItemAnnotation(testFolder.itemId, DESCRIPTION_ANNO));  // open test folder, and test the children  testFolder.containerOpen = true;  var cc = testFolder.childCount;  // XXX Bug 380468  // do_check_eq(cc, 2);  do_check_eq(cc, 1);  // test bookmark 1  var testBookmark1 = testFolder.getChild(0);  // url  do_check_eq("http://test/post", testBookmark1.uri);  // title  do_check_eq("test post keyword", testBookmark1.title);  // keyword  do_check_eq("test", bmsvc.getKeywordForBookmark(testBookmark1.itemId));  // sidebar  do_check_true(annosvc.itemHasAnnotation(testBookmark1.itemId,                                          LOAD_IN_SIDEBAR_ANNO));  // add date   do_check_eq(testBookmark1.dateAdded/1000000, 1177375336);  // last modified  do_check_eq(testBookmark1.lastModified/1000000, 1177375423);  // post data  var pageURI = iosvc.newURI(testBookmark1.uri, "", null);  do_check_true(annosvc.pageHasAnnotation(pageURI, POST_DATA_ANNO));  do_check_eq("hidden1%3Dbar&text1%3D%25s",              annosvc.getPageAnnotation(pageURI, POST_DATA_ANNO));  // last charset   do_check_true(annosvc.pageHasAnnotation(pageURI, LAST_CHARSET_ANNO));  do_check_eq("ISO-8859-1", annosvc.getPageAnnotation(pageURI,                                                      LAST_CHARSET_ANNO));  // description   do_check_true(annosvc.itemHasAnnotation(testBookmark1.itemId,                                          DESCRIPTION_ANNO));  do_check_eq("item description",              annosvc.getItemAnnotation(testBookmark1.itemId,                                        DESCRIPTION_ANNO));  /*  // XXX Bug 380468  // test bookmark 2  var testBookmark2 = testFolder.getChild(1);  // url  do_check_eq("http://test/micsum", testBookmark2.uri);  // title  do_check_eq("test microsummary", testBookmark2.title);  // check that it's a microsummary  var micsum = mssvc.getMicrosummary(testBookmark2.itemId);  if (!micsum)    do_throw("Could not import microsummary");  // check generator uri  var generator = micsum.generator;  do_check_eq("urn:source:http://dietrich.ganx4.com/mozilla/test-microsummary.xml", generator.uri.spec);  // expiration and generated title can change, so don't test them  */  // clean up  testFolder.containerOpen = false;  rootNode.containerOpen = false;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/515ad5f12b663f1789d0d62c6a551f101a365824/test_bookmarks_html.js/clean/browser/components/places/tests/unit/test_bookmarks_html.js