Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/tests/ui/icon_position.js

Issue 5745141503492096: Issue 1561 - Move unit tests out of the browser`s content area (Closed)
Patch Set: Rebased patch Created Jan. 10, 2015, 12:44 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/tests/popupBlocker.js ('k') | chrome/locale/en-US/harness.dtd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/ui/icon_position.js
===================================================================
--- a/chrome/content/tests/ui/icon_position.js
+++ b/chrome/content/tests/ui/icon_position.js
@@ -12,17 +12,17 @@
}
catch (e)
{
usingShim = true;
// No built-in CustomizableUI API, use our own implementation.
({CustomizableUI}) = require("customizableUI");
}
- let wnd = Utils.getChromeWindow(window);
+ let wnd = UI.currentWindow;
let defaultParent = require("appSupport").defaultToolbarPosition.parent;
let toolbox;
if (usingShim)
{
let toolbar = wnd.document.getElementById(defaultParent);
if (!toolbar)
return;
« no previous file with comments | « chrome/content/tests/popupBlocker.js ('k') | chrome/locale/en-US/harness.dtd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld