2 <?xml-stylesheet type=
"text/css" href=
"chrome://global/skin"?>
3 <?xml-stylesheet type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css"?>
5 Any copyright is dedicated to the Public Domain.
6 http://creativecommons.org/publicdomain/zero/1.0/
8 <window title=
"Mozilla Bug 832883"
9 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
13 <script type=
"application/javascript">
15 /* import-globals-from chromeHelpers.js */
16 function* testSteps() {
17 const name = window.location.pathname;
19 // Test for IDBKeyRange and indexedDB availability in chrome windows.
20 var keyRange = IDBKeyRange.only(
42);
21 ok(keyRange,
"Got keyRange");
23 var request = indexedDB.open(name,
1);
24 request.onerror = errorHandler;
25 request.onsuccess = grabEventAndContinueHandler;
26 let event = yield undefined;
28 let db = event.target.result;
29 ok(db,
"Got database");
37 <script type=
"text/javascript" src=
"chromeHelpers.js"></script>
39 <body xmlns=
"http://www.w3.org/1999/xhtml">
40 <a href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=832883"
41 target=
"_blank">Mozilla Bug
832883</a>