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

Side by Side Diff: LayoutTests/storage/resources/database-worker-controller.js

Issue 598034: Refactor a database test such that its code can be shared between the documen... (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/
Patch Set: '' Created 10 years, 10 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
« no previous file with comments | « LayoutTests/storage/resources/database-worker.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 var databaseWorker = new Worker('resources/database-worker.js');
2
3 databaseWorker.onmessage = function(event) {
4 if (event.data.indexOf('log:') == 0) {
5 log(event.data.substring(4));
6 } else if (event.data == 'notifyDone') {
7 if (window.layoutTestController)
8 layoutTestController.notifyDone();
9 } else {
10 throw new Error("Unrecognized message: " + event);
11 }
12 }
13
14 function log(message)
15 {
16 document.getElementById("console").innerText += message + "\n";
17 }
18
OLDNEW
« no previous file with comments | « LayoutTests/storage/resources/database-worker.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698