Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet type="text/css" href="chrome://global/skin"?> |
michael@0 | 3 | <?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.css"?> |
michael@0 | 4 | <!-- |
michael@0 | 5 | Any copyright is dedicated to the Public Domain. |
michael@0 | 6 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 7 | --> |
michael@0 | 8 | <window title="Mozilla Bug 832883" |
michael@0 | 9 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 10 | onload="runTest();"> |
michael@0 | 11 | <script type="application/javascript" |
michael@0 | 12 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> |
michael@0 | 13 | |
michael@0 | 14 | <script type="application/javascript;version=1.7"> |
michael@0 | 15 | <![CDATA[ |
michael@0 | 16 | function testSteps() { |
michael@0 | 17 | const name = window.location.pathname; |
michael@0 | 18 | |
michael@0 | 19 | // Test for IDBKeyRange and indexedDB availability in chrome windows. |
michael@0 | 20 | var keyRange = IDBKeyRange.only(42); |
michael@0 | 21 | ok(keyRange, "Got keyRange"); |
michael@0 | 22 | |
michael@0 | 23 | var request = indexedDB.open(name, 1); |
michael@0 | 24 | request.onerror = errorHandler; |
michael@0 | 25 | request.onsuccess = grabEventAndContinueHandler; |
michael@0 | 26 | let event = yield undefined; |
michael@0 | 27 | |
michael@0 | 28 | let db = event.target.result; |
michael@0 | 29 | ok(db, "Got database"); |
michael@0 | 30 | |
michael@0 | 31 | finishTest(); |
michael@0 | 32 | yield undefined; |
michael@0 | 33 | } |
michael@0 | 34 | ]]> |
michael@0 | 35 | </script> |
michael@0 | 36 | |
michael@0 | 37 | <script type="text/javascript;version=1.7" src="chromeHelpers.js"></script> |
michael@0 | 38 | |
michael@0 | 39 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 40 | <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=832883" |
michael@0 | 41 | target="_blank">Mozilla Bug 832883</a> |
michael@0 | 42 | </body> |
michael@0 | 43 | </window> |