Bug 1093566 - Add Cc, Ci, Cu, Cr to scope of spawned ContentTasks. r=Gijs, r=paolo, a=test-only
authorSteven MacLeod <smacleod@mozilla.com>
Thu, 26 Feb 2015 11:49:36 -0500
changeset 248044 1888d98f1d6f045cb2b70863ffb06e5b0b4c18ce
parent 248043 8e5d503cd9c991c8c3adebc7fd8d6a96c85a4ad3
child 248045 8771d218e0e1e3ec18d36a8afa8a952c54320b30
push id7748
push userryanvm@gmail.com
push dateFri, 13 Mar 2015 03:49:05 +0000
treeherdermozilla-aurora@8771d218e0e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, paolo, test-only
bugs1093566
milestone38.0a2
Bug 1093566 - Add Cc, Ci, Cu, Cr to scope of spawned ContentTasks. r=Gijs, r=paolo, a=test-only
testing/mochitest/BrowserTestUtils/content/content-task.js
--- a/testing/mochitest/BrowserTestUtils/content/content-task.js
+++ b/testing/mochitest/BrowserTestUtils/content/content-task.js
@@ -1,15 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-let Cu = Components.utils;
+const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
+
 Cu.import("resource://gre/modules/Task.jsm", this);
 
 addMessageListener("content-task:spawn", function (msg) {
   let id = msg.data.id;
   let source = msg.data.runnable || "()=>{}";
 
   try {
     let runnablestr = `