1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/indexedDB/test/test_globalObjects_chrome.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet type="text/css" href="chrome://global/skin"?> 1.6 +<?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.css"?> 1.7 +<!-- 1.8 + Any copyright is dedicated to the Public Domain. 1.9 + http://creativecommons.org/publicdomain/zero/1.0/ 1.10 +--> 1.11 +<window title="Mozilla Bug 832883" 1.12 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.13 + onload="runTest();"> 1.14 + <script type="application/javascript" 1.15 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> 1.16 + 1.17 + <script type="application/javascript;version=1.7"> 1.18 + <![CDATA[ 1.19 + function testSteps() { 1.20 + const name = window.location.pathname; 1.21 + 1.22 + // Test for IDBKeyRange and indexedDB availability in chrome windows. 1.23 + var keyRange = IDBKeyRange.only(42); 1.24 + ok(keyRange, "Got keyRange"); 1.25 + 1.26 + var request = indexedDB.open(name, 1); 1.27 + request.onerror = errorHandler; 1.28 + request.onsuccess = grabEventAndContinueHandler; 1.29 + let event = yield undefined; 1.30 + 1.31 + let db = event.target.result; 1.32 + ok(db, "Got database"); 1.33 + 1.34 + finishTest(); 1.35 + yield undefined; 1.36 + } 1.37 + ]]> 1.38 + </script> 1.39 + 1.40 + <script type="text/javascript;version=1.7" src="chromeHelpers.js"></script> 1.41 + 1.42 + <body xmlns="http://www.w3.org/1999/xhtml"> 1.43 + <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=832883" 1.44 + target="_blank">Mozilla Bug 832883</a> 1.45 + </body> 1.46 +</window>