Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <html>
6 <head>
7 <title>Indexed Database Test</title>
9 <script type="text/javascript;version=1.7">
10 let db;
11 let i = 0;
13 function onAddMore() {
14 const name = window.location.pathname + i++;
16 let request = indexedDB.open(name, 1);
17 request.onerror = errorHandler;
18 request.onsuccess = grabEventAndContinueHandler;
20 request.onsuccess = function(event) {
21 setTimeout(testFinishedCallback, 0, "complete");
22 }
23 request.onerror = function(event) {
24 setTimeout(testFinishedCallback, 0, "abort");
25 }
26 }
28 function onDone() {
29 window.removeEventListener("indexedDB-addMore", onAddMore, true);
30 window.removeEventListener("indexedDB-done", onDone, true);
32 testResult = "finished";
33 testException = undefined;
34 finishTest();
35 }
37 function testSteps()
38 {
39 window.addEventListener("indexedDB-addMore", onAddMore, true);
40 window.addEventListener("indexedDB-done", onDone, true);
42 setTimeout(testFinishedCallback, 0, "ready");
43 yield undefined;
44 }
45 </script>
47 <script type="text/javascript;version=1.7" src="browserHelpers.js"></script>
49 </head>
51 <body onload="runTest();" onunload="finishTestNow();"></body>
53 </html>