Backed out changeset b467fad71782 (bug 1142240) for frequent bc1 failures a=backout

--HG--
extra : amend_source : d9f495ca04f598cc57cfe46143e043ebde723f89
This commit is contained in:
Wes Kocher 2015-03-19 15:43:25 -07:00
Родитель 82a8ea4308
Коммит b80f92a0b2
3 изменённых файлов: 0 добавлений и 28 удалений

Просмотреть файл

@ -52,4 +52,3 @@ skip-if = e10s
skip-if = e10s
[browser_privatebrowsing_zoomrestore.js]
skip-if = e10s
[browser_aboutPrivateBrowsing_openWindow.js]

Просмотреть файл

@ -1,26 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
// Test that clicking "Open a Private Window" button on about:privatebrowsing
// opens a new private window.
add_task(function* test_aboutprivatebrowsing_open_window() {
let win = yield BrowserTestUtils.openNewBrowserWindow();
let browser = win.gBrowser.addTab("about:privatebrowsing").linkedBrowser;
yield BrowserTestUtils.browserLoaded(browser);
let promiseWindowOpened = BrowserTestUtils.domWindowOpened();
yield ContentTask.spawn(browser, {}, function* () {
content.document.getElementById("startPrivateBrowsing").click();
});
let private_window = yield promiseWindowOpened;
ok(PrivateBrowsingUtils.isWindowPrivate(private_window),
"The opened window should be private.");
// Cleanup.
yield BrowserTestUtils.closeWindow(private_window);
yield BrowserTestUtils.closeWindow(win);
});

Просмотреть файл

@ -2,7 +2,6 @@
* http://creativecommons.org/publicdomain/zero/1.0/ */
let {PromiseUtils} = Cu.import("resource://gre/modules/PromiseUtils.jsm", {});
let {PrivateBrowsingUtils} = Cu.import('resource://gre/modules/PrivateBrowsingUtils.jsm', {})
XPCOMUtils.defineLazyModuleGetter(this, "PlacesTestUtils",
"resource://testing-common/PlacesTestUtils.jsm");