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

Side by Side Diff: LayoutTests/fast/workers/storage/resources/test-inputs-common.js

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 function log(message)
2 {
3 document.getElementById("console").innerHTML += message + "<br>";
4 }
5
6 function finishTest()
7 {
8 if (window.testRunner)
9 testRunner.notifyDone();
10 }
11
12 function runTest(workerJSFile)
13 {
14 if (!workerJSFile) {
15 log("FAIL: no JS file specified for the worker.");
16 }
17
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.waitUntilDone();
21 }
22
23 var worker = new Worker(workerJSFile);
24 worker.onmessage = function(event) {
25 if (event.data == "done")
26 finishTest();
27 else
28 log(event.data);
29 }
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698