OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script> | |
4 function log(message) | |
5 { | |
6 document.getElementById("console").innerHTML += message + "<br>"; | |
7 } | |
8 | |
9 function finishTest() | |
10 { | |
11 if (window.testRunner) | |
12 testRunner.notifyDone(); | |
13 } | |
14 | |
15 function runTest() | |
16 { | |
17 if (window.testRunner) { | |
18 testRunner.dumpAsText(); | |
19 testRunner.waitUntilDone(); | |
20 } | |
21 | |
22 if (window.location.search == "?2") { | |
23 var worker = new Worker("resources/change-version-sync-2.js"); | |
24 worker.onmessage = function(event) { | |
25 if (event.data == "done") | |
26 finishTest(); | |
27 else | |
28 log(event.data); | |
29 }; | |
30 } else { | |
31 var worker = new Worker("resources/change-version-sync-1.js"); | |
32 worker.onmessage = function(event) { | |
33 if (event.data == "done") | |
34 window.location.href = window.location + "?2"; | |
35 else if (event.data == "fail") | |
36 finishTest(); | |
37 else | |
38 log(event.data); | |
39 }; | |
40 } | |
41 } | |
42 </script> | |
43 </head> | |
44 <body onload="runTest()"> | |
45 Test that version updates in sync databases work correctly. | |
46 <pre id="console"> | |
47 </pre> | |
48 </body> | |
49 </html> | |
OLD | NEW |