Bug 1256775 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_bug_869003_inspect_cross_domain_object.js. r=linclark, a=test-only
authorMichael Kohler <mkohler@picobudget.com>
Tue, 03 May 2016 16:03:00 -0400
changeset 379374 1e396b3ea165268d5a165ba0e0d0071914082e4c
parent 379373 d17e4865654d0d701f2105fd48333e453ec2997a
child 379375 17a229d8b88843924588d2ebaab854eb4ed73de1
push id21011
push usermak77@bonardo.net
push dateThu, 16 Jun 2016 13:40:45 +0000
reviewerslinclark, test-only
bugs1256775
milestone48.0a2
Bug 1256775 - [ESLint] Fix ESLint issues in devtools/client/webconsole/test/browser_bug_869003_inspect_cross_domain_object.js. r=linclark, a=test-only
devtools/client/webconsole/test/browser_bug_869003_inspect_cross_domain_object.js
--- a/devtools/client/webconsole/test/browser_bug_869003_inspect_cross_domain_object.js
+++ b/devtools/client/webconsole/test/browser_bug_869003_inspect_cross_domain_object.js
@@ -16,17 +16,17 @@ add_task(function* () {
   // variables view for a given object, it updates a property in the view and
   // checks the result. We can get a timeout with debug builds on slower
   // machines.
   requestLongerTimeout(2);
 
   yield loadTab("data:text/html;charset=utf8,<p>hello");
   let hud = yield openConsole();
 
-  content.location = TEST_URI;
+  BrowserTestUtils.loadURI(gBrowser.selectedBrowser, TEST_URI);
 
   let [result] = yield waitForMessages({
     webconsole: hud,
     messages: [{
       name: "console.log message",
       text: "foobar",
       category: CATEGORY_WEBDEV,
       severity: SEVERITY_LOG,
@@ -70,9 +70,8 @@ add_task(function* () {
 
   info("onFetchAfterUpdate");
 
   yield findVariableViewProperties(aVar, [
     { name: "hello", value: "omgtest" },
     { name: "bug", value: 869003 },
   ], { webconsole: hud });
 });
-