Source code
Revision control
Copy as Markdown
Other Tools
/**
* Any copyright is dedicated to the Public Domain.
*/
const { PrincipalUtils } = ChromeUtils.importESModule(
);
const { LocalStorageUtils } = ChromeUtils.importESModule(
);
add_task(async function testSteps() {
const storage = LocalStorageUtils.createStorage(principal);
try {
storage.getItem("foo");
ok(false, "Should have thrown");
} catch (e) {
ok(true, "Should have thrown");
Assert.strictEqual(e.result, Cr.NS_ERROR_ABORT, "Threw right result code");
}
});