Bug 997291 - remove write-only gInspectee variables from devtools server tests; r=jmaher
authorNathan Froyd <froydnj@mozilla.com>
Wed, 16 Apr 2014 13:21:20 -0400
changeset 179125 0706e7e5b0fc14a148ad436fdc07d8a014a254e6
parent 179124 6863631867ea7700a0db20b69dc2d517731b8ecd
child 179126 28e35ed195ab75f2bdb3d899292258f01fe4912a
push id26607
push userryanvm@gmail.com
push dateFri, 18 Apr 2014 02:31:26 +0000
treeherdermozilla-central@7fe3ee0cf8be [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs997291
milestone31.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 997291 - remove write-only gInspectee variables from devtools server tests; r=jmaher
toolkit/devtools/server/tests/mochitest/test_inspector-release.html
toolkit/devtools/server/tests/mochitest/test_styles-applied.html
toolkit/devtools/server/tests/mochitest/test_styles-svg.html
--- a/toolkit/devtools/server/tests/mochitest/test_inspector-release.html
+++ b/toolkit/devtools/server/tests/mochitest/test_inspector-release.html
@@ -26,17 +26,16 @@ var gClient = null;
 
 function assertOwnership() {
   return assertOwnershipTrees(gWalker);
 }
 
 addTest(function setup() {
   let url = document.getElementById("inspectorContent").href;
   attachURL(url, function(err, client, tab, doc) {
-    gInspectee = doc;
     let {InspectorFront} = devtools.require("devtools/server/actors/inspector");
     let inspector = InspectorFront(client, tab);
     promiseDone(inspector.getWalker().then(walker => {
       ok(walker, "getWalker() should return an actor.");
       gClient = client;
       gWalker = walker;
     }).then(runNextTest));
   });
--- a/toolkit/devtools/server/tests/mochitest/test_styles-applied.html
+++ b/toolkit/devtools/server/tests/mochitest/test_styles-applied.html
@@ -23,17 +23,16 @@ window.onload = function() {
 
 var gWalker = null;
 var gStyles = null;
 var gClient = null;
 
 addTest(function setup() {
   let url = document.getElementById("inspectorContent").href;
   attachURL(url, function(err, client, tab, doc) {
-    gInspectee = doc;
     let {InspectorFront} = devtools.require("devtools/server/actors/inspector");
     let inspector = InspectorFront(client, tab);
     promiseDone(inspector.getWalker().then(walker => {
       ok(walker, "getWalker() should return an actor.");
       gClient = client;
       gWalker = walker;
       return inspector.getPageStyle();
     }).then(styles => {
--- a/toolkit/devtools/server/tests/mochitest/test_styles-svg.html
+++ b/toolkit/devtools/server/tests/mochitest/test_styles-svg.html
@@ -24,17 +24,16 @@ window.onload = function() {
 
 var gWalker = null;
 var gStyles = null;
 var gClient = null;
 
 addTest(function setup() {
   let url = document.getElementById("inspectorContent").href;
   attachURL(url, function(err, client, tab, doc) {
-    gInspectee = doc;
     let {InspectorFront} = devtools.require("devtools/server/actors/inspector");
     let inspector = InspectorFront(client, tab);
     promiseDone(inspector.getWalker().then(walker => {
       ok(walker, "getWalker() should return an actor.");
       gClient = client;
       gWalker = walker;
       return inspector.getPageStyle();
     }).then(styles => {