Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <?xml version="1.0"?>
2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
3 <?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.css"?>
4 <!--
5 Any copyright is dedicated to the Public Domain.
6 http://creativecommons.org/publicdomain/zero/1.0/
7 -->
8 <window title="Mozilla Bug 832883"
9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
10 onload="runTest();">
11 <script type="application/javascript"
12 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
14 <script type="application/javascript;version=1.7">
15 <![CDATA[
16 function testSteps() {
17 // Test for IDBKeyRange and indexedDB availability in bootstrap files.
18 let test = Cc["@mozilla.org/dom/indexeddb/GlobalObjectsComponent;1"].
19 createInstance(Ci.nsISupports).wrappedJSObject;
20 test.ok = ok;
21 test.finishTest = continueToNextStep;
22 test.runTest();
23 yield undefined;
25 Cu.import("resource://gre/modules/AddonManager.jsm");
26 AddonManager.getAddonByID("indexedDB-test@mozilla.org",
27 grabEventAndContinueHandler);
28 let addon = yield undefined;
29 addon.uninstall();
31 Cu.import("resource://gre/modules/Services.jsm");
32 for each (var stage in [ "install", "startup", "shutdown", "uninstall" ]) {
33 for each (var symbol in [ "IDBKeyRange", "indexedDB" ]) {
34 let pref;
35 try {
36 pref = Services.prefs.getBoolPref("indexeddbtest.bootstrap." + stage +
37 "." + symbol);
38 }
39 catch(ex) {
40 pref = false;
41 }
42 ok(pref, "Symbol '" + symbol + "' present during '" + stage + "'");
43 }
44 }
46 finishTest();
47 yield undefined;
48 }
50 window.runTest = function() {
51 SimpleTest.waitForExplicitFinish();
53 testGenerator.next();
54 }
55 ]]>
56 </script>
58 <script type="text/javascript;version=1.7" src="chromeHelpers.js"></script>
60 <body xmlns="http://www.w3.org/1999/xhtml">
61 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=832883"
62 target="_blank">Mozilla Bug 832883</a>
63 </body>
64 </window>