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

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

Issue 10821016: Delete chrome/test/data/workers since it's not used anymore. It was copied in r148205 in preparatio… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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_common.js ('k') | chrome/test/data/workers/workers_ui_shared_worker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/workers/worker_utils.js
===================================================================
--- chrome/test/data/workers/worker_utils.js (revision 148361)
+++ chrome/test/data/workers/worker_utils.js (working copy)
@@ -1,37 +0,0 @@
-var shared_worker_count = 0;
-function getWorker(worker_url)
-{
- // Create either a dedicated or shared worker, depending on flags
- var url = document.location.toString();
- if (url.search("shared") >= 0) {
- // Make a shared worker that looks like a worker
- var worker = new SharedWorker(worker_url, "name" + ++shared_worker_count);
- worker.port.onmessage = function(evt) {
- worker.onmessage(evt);
- };
- worker.postMessage = function(msg, port) {
- worker.port.postMessage(msg, port);
- };
- return worker;
- } else {
- return new Worker(worker_url);
- }
-}
-
-function onSuccess()
-{
- setTimeout(onFinished, 0, "OK");
-}
-
-function onFailure() {
- setTimeout(onFinished, 0, "FAIL");
-}
-
-function onFinished(result) {
- var statusPanel = document.getElementById("statusPanel");
- if (statusPanel) {
- statusPanel.innerHTML = result;
- }
-
- document.title = result;
-}
« no previous file with comments | « chrome/test/data/workers/worker_common.js ('k') | chrome/test/data/workers/workers_ui_shared_worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698