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

Commit

Permalink
Merge pull request #1105 from erikvold/893940
Browse files Browse the repository at this point in the history
Bug 893940 - Intermittent TEST-UNEXPECTED-FAIL | private-browsing-supported/main.testOpenTabWithNonPrivateActiveWindowWithIsPrivateOptionFalse r=@jsantell
  • Loading branch information
erikvold committed Jul 15, 2013
2 parents 1cc54b1 + 36309ad commit 688f6b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/addons/private-browsing-supported/test-tabs.js
Expand Up @@ -5,7 +5,7 @@ const { is } = require('sdk/system/xul-app');
const { isPrivate } = require('sdk/private-browsing');
const pbUtils = require('sdk/private-browsing/utils');
const { getOwnerWindow } = require('sdk/private-browsing/window/utils');
const { promise: windowPromise, close } = require('sdk/window/helpers');
const { promise: windowPromise, close, focus } = require('sdk/window/helpers');
const { getMostRecentBrowserWindow } = require('sdk/window/utils');

exports.testPrivateTabsAreListed = function (assert, done) {
Expand Down Expand Up @@ -37,7 +37,7 @@ exports.testPrivateTabsAreListed = function (assert, done) {
exports.testOpenTabWithPrivateActiveWindowNoIsPrivateOption = function(assert, done) {
let window = getMostRecentBrowserWindow().OpenBrowserWindow({ private: true });

windowPromise(window, 'load').then(function (window) {
windowPromise(window, 'load').then(focus).then(function (window) {
assert.ok(isPrivate(window), 'new window is private');

tabs.open({
Expand All @@ -56,7 +56,7 @@ exports.testOpenTabWithPrivateActiveWindowNoIsPrivateOption = function(assert, d
exports.testOpenTabWithNonPrivateActiveWindowNoIsPrivateOption = function(assert, done) {
let window = getMostRecentBrowserWindow().OpenBrowserWindow({ private: false });

windowPromise(window, 'load').then(function (window) {
windowPromise(window, 'load').then(focus).then(function (window) {
assert.equal(isPrivate(window), false, 'new window is not private');

tabs.open({
Expand All @@ -75,7 +75,7 @@ exports.testOpenTabWithNonPrivateActiveWindowNoIsPrivateOption = function(assert
exports.testOpenTabWithPrivateActiveWindowWithIsPrivateOptionTrue = function(assert, done) {
let window = getMostRecentBrowserWindow().OpenBrowserWindow({ private: true });

windowPromise(window, 'load').then(function (window) {
windowPromise(window, 'load').then(focus).then(function (window) {
assert.ok(isPrivate(window), 'new window is private');

tabs.open({
Expand All @@ -95,7 +95,7 @@ exports.testOpenTabWithPrivateActiveWindowWithIsPrivateOptionTrue = function(ass
exports.testOpenTabWithNonPrivateActiveWindowWithIsPrivateOptionFalse = function(assert, done) {
let window = getMostRecentBrowserWindow().OpenBrowserWindow({ private: false });

windowPromise(window, 'load').then(function (window) {
windowPromise(window, 'load').then(focus).then(function (window) {
assert.equal(isPrivate(window), false, 'new window is not private');

tabs.open({
Expand Down

0 comments on commit 688f6b0

Please sign in to comment.