var idx = 3; var testFolder = rootNode.getChild(idx); 
var testFolder = rootNode.getChild(3); 
function testCanonicalBookmarks(aFolder) {  // query to see if the deleted folder and items have been imported  try {    var query = histsvc.getNewQuery();    query.setFolders([bmsvc.bookmarksRoot], 1);    var result = histsvc.executeQuery(query, histsvc.getNewQueryOptions());    var rootNode = result.root;    rootNode.containerOpen = true;    // get test folder    var idx = 3; // XXX why does passing the value directly fail?    var testFolder = rootNode.getChild(idx);    do_check_eq(testFolder.type, testFolder.RESULT_TYPE_FOLDER);    do_check_eq(testFolder.title, "test");    testFolder = testFolder.QueryInterface(Ci.nsINavHistoryFolderResultNode);    do_check_eq(testFolder.hasChildren, true);    // open test folder, and test the children     testFolder.containerOpen = true;    var cc = testFolder.childCount;    do_check_eq(cc, 2);    // 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    // add date     // last modified    // post data    // last charset     // description     // 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);    // micsum uri    // micsum expiration    // micsum generated title    // clean up    testFolder.containerOpen = false;    rootNode.containerOpen = false;  }  catch(ex) {    do_throw("bookmarks query tests failed: " + ex);  }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/cce32bf90e14ada4e700726dc4edc2ba2be764af/test_bookmarks_html.js/buggy/browser/components/places/tests/unit/test_bookmarks_html.js