Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Update tests to use the new, simpler way of accessing nsIDOMWindowUti…
Browse files Browse the repository at this point in the history
…ls (landed upstream in bug 1476145)
  • Loading branch information
jaredhirsch committed Oct 10, 2018
1 parent fc50a2f commit 91467b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/addon/browser_screenshots_ui_check.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ async function togglePageActionPanel() {
}

function promiseOpenPageActionPanel() {
const dwu = window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils);
const dwu = window.windowUtils;
return BrowserTestUtils.waitForCondition(() => {
// Wait for the main page action button to become visible. It's hidden for
// some URIs, so depending on when this is called, it may not yet be quite
Expand Down Expand Up @@ -55,8 +54,7 @@ function promisePageActionPanelEvent(eventType) {

function promisePageActionViewChildrenVisible(panelViewNode) {
info("promisePageActionViewChildrenVisible waiting for a child node to be visible");
const dwu = window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils);
const dwu = window.windowUtils;
return BrowserTestUtils.waitForCondition(() => {
const bodyNode = panelViewNode.firstChild;
for (const childNode of bodyNode.childNodes) {
Expand Down

0 comments on commit 91467b9

Please sign in to comment.