  var options = histsvc.getNewQueryOptions(); options.sortingAnnotation = "test anno"; options.sortingMode = NHQO.SORT_BY_ANNOTATION_DESCENDING; var placeURI = "place:folder=1&sort=" + NHQO.SORT_BY_ANNOTATION_DESCENDING + "&sortingAnnotation=test%20anno"; do_check_eq(histsvc.queriesToQueryString([query], 1, options), placeURI); var options = {}; histsvc.queryStringToQueries(placeURI, { }, {}, options); do_check_eq(options.value.sortingAnnotation, "test anno"); do_check_eq(options.value.sortingMode, NHQO.SORT_BY_ANNOTATION_DESCENDING); 
function run_test() {  // XXX Full testing coverage for QueriesToQueryString and  // QueryStringToQueries  // Bug 376798  var query = histsvc.getNewQuery();  query.setFolders([1],1);  do_check_eq(histsvc.queriesToQueryString([query], 1, histsvc.getNewQueryOptions()),              "place:folder=1");}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/835710045fb23391e74d72bd013254ff354cf6af/test_placeURIs.js/buggy/toolkit/components/places/tests/unit/test_placeURIs.js