Bug 557591 - Add tests for Utils.anno with invalid uris.

This commit is contained in:
Edward Lee 2010-06-01 11:30:11 -07:00
parent f64fb8323b
commit 8d2951b399

View File

@ -20,4 +20,14 @@ function run_test() {
_("sanity check that the item anno is still there");
do_check_eq(Utils.anno(1, "anno"), "hi");
_("invalid uris don't get annos");
let didThrow = false;
try {
Utils.anno("foo/bar/baz", "bad");
}
catch(ex) {
didThrow = true;
}
do_check_true(didThrow);
}