Bug 1129331 - Remove nonstandard let blocks from netwerk. r=hurley
authorChris Peterson <cpeterson@mozilla.com>
Sat, 24 Jan 2015 23:36:25 -0800
changeset 227598 929ab8b8c789f4cdedeff3228386de96e7100269
parent 227597 4ceae3faa925a47962b5008a089639f7449c26f8
child 227599 653ead886844fc37c45a4e5a2005991e38c1b144
push id55165
push usercpeterson@mozilla.com
push dateThu, 05 Feb 2015 04:44:28 +0000
treeherdermozilla-inbound@929ab8b8c789 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershurley
bugs1129331
milestone38.0a1
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
Bug 1129331 - Remove nonstandard let blocks from netwerk. r=hurley
netwerk/test/unit/test_bug414122.js
netwerk/test/unit/test_spdy.js
--- a/netwerk/test/unit/test_bug414122.js
+++ b/netwerk/test/unit/test_bug414122.js
@@ -28,21 +28,19 @@ function run_test()
     if (firstTwo == "" || firstTwo == "//")
       continue;
 
     var space = line.search(/[ \t]/);
     line = line.substring(0, space == -1 ? line.length : space);
 
     if ("*." == firstTwo)
     {
-      let (rest = line.substring(2))
-      {
-        checkPublicSuffix("foo.SUPER-SPECIAL-AWESOME-PREFIX." + rest,
-                          "SUPER-SPECIAL-AWESOME-PREFIX." + rest);
-      }
+      let rest = line.substring(2);
+      checkPublicSuffix("foo.SUPER-SPECIAL-AWESOME-PREFIX." + rest,
+                        "SUPER-SPECIAL-AWESOME-PREFIX." + rest);
     }
     else if ("!" == line.charAt(0))
     {
       checkPublicSuffix(line.substring(1),
                         line.substring(line.indexOf(".") + 1));
     }
     else
     {
--- a/netwerk/test/unit/test_spdy.js
+++ b/netwerk/test/unit/test_spdy.js
@@ -1,14 +1,10 @@
 // test spdy/3.1
 
-var Ci = Components.interfaces;
-var Cc = Components.classes;
-var Cu = Components.utils;
-
 Cu.import("resource://gre/modules/Services.jsm");
 
 // Generate a small and a large post with known pre-calculated md5 sums
 function generateContent(size) {
   var content = "";
   for (var i = 0; i < size; i++) {
     content += "0";
   }
@@ -347,17 +343,17 @@ function test_complete() {
 
 // hack - the header test resets the multiplex object on the server,
 // so make sure header is always run before the multiplex test.
 //
 // make sure post_big runs first to test race condition in restarting
 // a stalled stream when a SETTINGS frame arrives
 var tests = [ test_spdy_post_big
             , test_spdy_basic
-	    , test_spdy_concurrent
+            , test_spdy_concurrent
             , test_spdy_push1
             , test_spdy_push2
             , test_spdy_push3
             , test_spdy_push4
             , test_spdy_xhr
             , test_spdy_header
             , test_spdy_multiplex
             , test_spdy_big