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: Final patch Created Nov. 15, 2014, 11:53 p.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
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;

Powered by Google App Engine
This is Rietveld