2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
6 /* exported testGenerator */
7 var testGenerator = testSteps();
9 function* testSteps() {
11 // This one lives in storage/default/http+++www.mozilla.org
12 { url: "http://www.mozilla.org", dbName: "dbB", dbVersion: 1 },
15 clearAllDatabases(continueToNextStepSync);
18 installPackagedProfile("schema23upgrade_profile");
20 for (let params of openParams) {
21 let request = indexedDB.openForPrincipal(
22 getPrincipal(params.url),
26 request.onerror = errorHandler;
27 request.onupgradeneeded = unexpectedSuccessHandler;
28 request.onsuccess = grabEventAndContinueHandler;
29 let event = yield undefined;
31 is(event.type, "success", "Correct event type");
34 resetAllDatabases(continueToNextStepSync);
37 for (let params of openParams) {
38 let request = indexedDB.openForPrincipal(
39 getPrincipal(params.url),
43 request.onerror = errorHandler;
44 request.onupgradeneeded = unexpectedSuccessHandler;
45 request.onsuccess = grabEventAndContinueHandler;
46 let event = yield undefined;
48 is(event.type, "success", "Correct event type");