context: 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) {}  // get annotation info  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);  // get annotation names for a uri  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://mozilla.org");  var oldAnnoNames = annosvc.getPageAnnotationNames(testURI, {});  annosvc.copyAnnotations(testURI, newURI, false);  var newAnnoNames = annosvc.getPageAnnotationNames(newURI, {});  do_check_eq(oldAnnoNames.length, newAnnoNames.length);  */}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/230cf2132332a1293698905ee40ea641f75e2639/test_annotations.js/clean/toolkit/components/places/tests/unit/test_annotations.js