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

Unified Diff: chrome/test/data/workers/worker_common.js

Issue 509016: Refactored code to allow associating workers with multiple renderers. (Closed)
Patch Set: Disabled overly-aggressive assertion in ResourceDispatcherHost. Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/workers/worker_auth.html ('k') | chrome/worker/worker_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/workers/worker_common.js
diff --git a/chrome/test/data/workers/worker_common.js b/chrome/test/data/workers/worker_common.js
index 8caa6227fa97efa2c34ed3ceabc211130344bd5d..664da580b24eb15b88b6a76fbbd892fdde90ec84 100644
--- a/chrome/test/data/workers/worker_common.js
+++ b/chrome/test/data/workers/worker_common.js
@@ -12,6 +12,8 @@ if (!self.postMessage) {
onmessage = function(evt) {
if (evt.data == "ping")
postMessage("pong");
+ else if (evt.data == "auth")
+ importScripts("/auth-basic");
else if (/eval.+/.test(evt.data)) {
try {
postMessage(eval(evt.data.substr(5)));
« no previous file with comments | « chrome/test/data/workers/worker_auth.html ('k') | chrome/worker/worker_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698