Bug 632893 - Remove useless Cc/Ci/Cr/Cu/Services.jsm from Firefox tests; (Bv1) /components/sessionstore/test/browser/.

r=paul (a=test-only).
This commit is contained in:
Serge Gautherie 2011-02-18 00:45:56 +01:00
parent 8c00c071fe
commit 001b833183
11 changed files with 0 additions and 20 deletions

View File

@ -35,13 +35,11 @@
*
* ***** END LICENSE BLOCK ***** */
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
let stateBackup = ss.getBrowserState();
function test() {
/** Test for bug 581593 **/
waitForExplicitFinish();
@ -87,4 +85,3 @@ function cleanup() {
ss.setBrowserState(stateBackup);
executeSoon(finish);
}

View File

@ -35,7 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
@ -764,4 +763,3 @@ function countTabs() {
function r() {
return "" + Date.now() + Math.random();
}

View File

@ -38,7 +38,6 @@
// Mirrors WINDOW_ATTRIBUTES IN nsSessionStore.js
const WINDOW_ATTRIBUTES = ["width", "height", "screenX", "screenY", "sizemode"];
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
@ -273,4 +272,3 @@ function afterTestCleanup(aNewWin) {
runNextTestOrFinish();
});
}

View File

@ -37,13 +37,11 @@
const NUM_TABS = 12;
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
let stateBackup = ss.getBrowserState();
function test() {
/** Test for Bug 590268 - Provide access to sessionstore tab data sooner **/
waitForExplicitFinish();
@ -177,4 +175,3 @@ function test() {
function r() {
return "" + Date.now() + Math.random();
}

View File

@ -1,7 +1,6 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);

View File

@ -35,7 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);

View File

@ -38,7 +38,6 @@
const TAB_STATE_NEEDS_RESTORE = 1;
const TAB_STATE_RESTORING = 2;
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);

View File

@ -38,7 +38,6 @@
const TAB_STATE_NEEDS_RESTORE = 1;
const TAB_STATE_RESTORING = 2;
Cu.import("resource://gre/modules/Services.jsm");
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
@ -153,4 +152,3 @@ function test() {
function r() {
return "" + Date.now() + Math.random();
}

View File

@ -35,7 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
Cu.import("resource://gre/modules/Services.jsm");
const ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
@ -390,4 +389,3 @@ function test_undoCloseWindow() {
runNextTest();
}
}

View File

@ -35,7 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
Cu.import("resource://gre/modules/Services.jsm");
const ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
@ -110,4 +109,3 @@ function test_hang() {
ok(true, "test didn't time out");
runNextTest();
}

View File

@ -35,7 +35,6 @@
*
* ***** END LICENSE BLOCK ***** */
Cu.import("resource://gre/modules/Services.jsm");
const SS_SVC = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);