  do_check_true(!histsvc.historyDisabled); 
function run_test() {  // test URI  var testURI = uri("http://mozilla.com/");  // add a visit  var placeID = histsvc.addVisit(testURI,                                 Date.now(),                                 0, // no referrer                                 histsvc.TRANSITION_TYPED, // user typed in URL bar                                 false, // not redirect                                 0);  // test for valid place ID  do_check_true(placeID > 0);  // query for the visit  var options = histsvc.getNewQueryOptions();  // set sorting and limit such that we should retrieve only the visit we just added  options.sortingMode = options.SORT_BY_DATE_DESCENDING;  options.maxResults = 1;  // TODO: using full visit crashes in xpcshell test  //options.resultType = options.RESULTS_AS_FULL_VISIT;  options.resultType = options.RESULTS_AS_VISIT;  var query = histsvc.getNewQuery();  var result = histsvc.executeQuery(query, options);  var root = result.root;  root.containerOpen = true;  var cc = root.childCount;  for (var i=0; i < cc; ++i) {    var node = root.getChild(i);    // test node properties in RESULTS_AS_VISIT    do_check_eq(node.uri, testURI.spec);    do_check_eq(node.type, options.RESULTS_AS_VISIT);    // TODO: change query type to RESULTS_AS_FULL_VISIT and test this    //do_check_eq(node.transitionType, histsvc.TRANSITION_TYPED);  }  root.containerOpen = false;}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/0ea4e79fbcaa4938524bb95510601c855da891d5/test_history.js/buggy/browser/components/places/tests/unit/test_history.js