Backed out changeset 87ed776cbacd (bug 1014466)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 06 Jun 2014 10:20:58 +0200
changeset 207371 cd9ee55b7d24a7bbcedf55f775ab3266c9c1fa6a
parent 207370 16fb5d3adef7eb27673d5453706ed1efc038ec77
child 207372 701627f5212db2c2fd8b4dda6fae088f2f02931c
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1014466
milestone32.0a1
backs out87ed776cbacdf3f6a684a563134a9eed0afa787a
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 87ed776cbacd (bug 1014466)
dom/workers/test/bug1014466_data1.txt
dom/workers/test/bug1014466_data2.txt
dom/workers/test/bug1014466_worker.js
dom/workers/test/mochitest.ini
dom/workers/test/test_bug1014466.html
deleted file mode 100644
--- a/dom/workers/test/bug1014466_data1.txt
+++ /dev/null
@@ -1,1 +0,0 @@
-1234567890
deleted file mode 100644
--- a/dom/workers/test/bug1014466_data2.txt
+++ /dev/null
@@ -1,1 +0,0 @@
-ABCDEFGH
deleted file mode 100644
--- a/dom/workers/test/bug1014466_worker.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
-
-function ok(a, msg) {
-  postMessage({type: "status", status: !!a, msg: msg });
-}
-
-onmessage = function(event) {
-
-  function getResponse(url) {
-    var xhr = new XMLHttpRequest();
-    xhr.open("GET", url, false);
-    xhr.send();
-    return xhr.responseText;
-  }
-
-  const testFile1 = "bug1014466_data1.txt";
-  const testFile2 = "bug1014466_data2.txt";
-  const testData1 = getResponse(testFile1);
-  const testData2 = getResponse(testFile2);
-
-  var response_count = 0;
-  var xhr = new XMLHttpRequest();
-  xhr.onreadystatechange = function() {
-    if (xhr.readyState == xhr.DONE && xhr.status == 200) {
-      response_count++;
-      switch (response_count) {
-        case 1:
-          ok(xhr.responseText == testData1, "Check data 1");
-          test_data2();
-          break;
-        case 2:
-          ok(xhr.responseText == testData2, "Check data 2");
-          postMessage({type: "finish" });
-          break;
-        default:
-          ok(false, "Unexpected response received");
-          postMessage({type: "finish" });
-          break;
-      }
-    }
-  }
-  xhr.onerror = function(event) {
-    ok(false, "Got an error event: " + event);
-    postMessage({type: "finish" });
-  }
-
-  function test_data1() {
-    xhr.open("GET", testFile1, true);
-    xhr.responseType = "text";
-    xhr.send();
-  }
-
-  function test_data2() {
-    xhr.abort();
-    xhr.open("GET", testFile2, true);
-    xhr.responseType = "text";
-    xhr.send();
-  }
-
-  test_data1();
-}
--- a/dom/workers/test/mochitest.ini
+++ b/dom/workers/test/mochitest.ini
@@ -1,15 +1,12 @@
 [DEFAULT]
 support-files =
   WorkerTest_badworker.js
   atob_worker.js
-  bug1014466_data1.txt
-  bug1014466_data2.txt
-  bug1014466_worker.js
   bug1020226_worker.js
   bug1020226_frame.html
   clearTimeouts_worker.js
   closeOnGC_server.sjs
   closeOnGC_worker.js
   close_worker.js
   content_worker.js
   console_worker.js
@@ -78,17 +75,16 @@ support-files =
   subdir/relativeLoad_sub_import.js
 
 [test_404.html]
 [test_atob.html]
 [test_blobConstructor.html]
 [test_blobWorkers.html]
 [test_bug949946.html]
 [test_bug1010784.html]
-[test_bug1014466.html]
 [test_bug1020226.html]
 [test_chromeWorker.html]
 [test_clearTimeouts.html]
 [test_close.html]
 [test_closeOnGC.html]
 skip-if = (buildapp == 'b2g' && (toolkit != 'gonk' || debug)) || toolkit == 'android' #bug 881404 # b2g-debug(times out) b2g-desktop(times out)
 [test_console.html]
 [test_consoleReplaceable.html]
deleted file mode 100644
--- a/dom/workers/test/test_bug1014466.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!--
-2   Any copyright is dedicated to the Public Domain.
-3   http://creativecommons.org/publicdomain/zero/1.0/
-4 -->
-<!DOCTYPE HTML>
-<html>
-<!--
-https://bugzilla.mozilla.org/show_bug.cgi?id=1014466
--->
-<head>
-  <meta charset="utf-8">
-  <title>Test for Bug 1014466</title>
-  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
-</head>
-<body>
-<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1014466">Mozilla Bug 1014466</a>
-<p id="display"></p>
-<div id="content" style="display: none">
-
-</div>
-<pre id="test">
-<script type="application/javascript">
-
-  var worker = new Worker("bug1014466_worker.js");
-
-  worker.onmessage = function(event) {
-    if (event.data.type == 'finish') {
-      SimpleTest.finish();
-    } else if (event.data.type == 'status') {
-      ok(event.data.status, event.data.msg);
-    }
-  };
-
-  worker.postMessage(true);
-
-  SimpleTest.waitForExplicitFinish();
-
-</script>
-</pre>
-</body>
-</html>