Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: LayoutTests/fast/workers/storage/change-version-sync.html

Issue 561093003: Remove worker support of Web SQL Database. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698