Bug 1816170 - Disable perftest-on-autoland cron. r=aglavic
[gecko.git] / dom / indexedDB / test / unit / test_bad_origin_directory.js
blob07968c4b3b9acf74598dbd5d6070a7c6872654b8
1 /**
2  * Any copyright is dedicated to the Public Domain.
3  * http://creativecommons.org/publicdomain/zero/1.0/
4  */
6 /* exported testGenerator */
7 var testGenerator = testSteps();
9 function* testSteps() {
10   const url = "ftp://ftp.example.com";
11   const name = "test_bad_origin_directory.js";
13   let uri = Services.io.newURI(url);
15   let principal = Services.scriptSecurityManager.createContentPrincipal(
16     uri,
17     {}
18   );
20   info("Opening database");
22   let request = indexedDB.openForPrincipal(principal, name);
23   request.onerror = continueToNextStepSync;
24   request.onsuccess = unexpectedSuccessHandler;
25   yield undefined;
27   finishTest();
28   yield undefined;