  var flags = {}, exp = {}, mimeType = {}, storageType = {}; annosvc.getAnnotationInfo(testURI, testAnnoName, flags, exp, mimeType, storageType); do_check_eq(flags.value, 0); do_check_eq(exp.value, 0); do_check_eq(mimeType.value, null); do_check_eq(storageType.value, Ci.mozIStorageValueArray.VALUE_TYPE_TEXT);   var annoNames = annosvc.getPageAnnotationNames(testURI, {}); do_check_eq(annoNames.length, 1); do_check_eq(annoNames[0], "moz-test-places/annotations");  /* copy annotations to another uri var newURI = uri("http: var oldAnnoNames = annosvc.getPageAnnotationNames(testURI, {}); annosvc.copyAnnotations(testURI, newURI, false); var newAnnoNames = annosvc.getPageAnnotationNames(newURI, {}); do_check_eq(oldAnnoNames.length, newAnnoNames.length); */ 
function run_test() {  // test URI  var testURI = uri("http://mozilla.com/");  var testAnnoName = "moz-test-places/annotations";  var testAnnoVal = "test";  // create new annotation  try {    annosvc.setAnnotationString(testURI, testAnnoName, testAnnoVal, 0, 0);  } catch(ex) {    do_throw("unable to add annotation");  }  // get annotation  var storedAnnoVal = annosvc.getAnnotationString(testURI, testAnnoName);  do_check_eq(testAnnoVal, storedAnnoVal);  // get annotation that doesn't exist  try {    annosvc.getAnnotationString(testURI, "blah");    do_throw("fetching annotation that doesn't exist, should've thrown");  } catch(ex) {}}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/552334070053b902ad2629c6ac05db1f0f7fdc9e/test_annotations.js/buggy/browser/components/places/tests/unit/test_annotations.js