Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 852217: focus opened windows in pb tests of pb test addon
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvold committed Mar 18, 2013
1 parent ae5dc6a commit 126854a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/addons/private-browsing-supported/test-windows.js
Expand Up @@ -172,7 +172,7 @@ exports.testActiveWindowDoesNotIgnorePrivateWindow = function(assert, done) {
// make a new private window
makeEmptyBrowserWindow({
private: true
}).then(function(window) {
}).then(focus).then(function(window) {
// PWPB case
if (isWindowPBSupported) {
assert.equal(isPrivate(winUtils.activeWindow), true,
Expand Down Expand Up @@ -212,7 +212,7 @@ exports.testWindowIteratorIgnoresPrivateWindows = function(assert, done) {
// make a new private window
makeEmptyBrowserWindow({
private: true
}).then(function(window) {
}).then(focus).then(function(window) {
assert.equal(isWindowPrivate(window), isWindowPBSupported);
assert.ok(toArray(winUtils.windowIterator()).indexOf(window) > -1,
"window is in windowIterator()");
Expand Down Expand Up @@ -240,7 +240,7 @@ exports.testWindowIteratorPrivateDefault = function(assert, done) {
private: true,
chrome: true
}
}).then(function(window) {
}).then(focus).then(function(window) {
// test that there is a private window opened
assert.equal(isPrivate(window), isWindowPBSupported, 'there is a private window open');
assert.equal(isPrivate(winUtils.activeWindow), isWindowPBSupported);
Expand Down

0 comments on commit 126854a

Please sign in to comment.