зеркало из https://github.com/mozilla/pjs.git
No bug - fix some browser chrome tests that pollute the global scope
This commit is contained in:
Родитель
11e81ff408
Коммит
4c600e7cd0
|
@ -43,7 +43,8 @@ function test() {
|
|||
}
|
||||
|
||||
function afterZoomAndLoad(cb) {
|
||||
let didLoad = didZoom = false;
|
||||
let didLoad = false;
|
||||
let didZoom = false;
|
||||
tabElm.linkedBrowser.addEventListener("load", function() {
|
||||
tabElm.linkedBrowser.removeEventListener("load", arguments.callee, true);
|
||||
didLoad = true;
|
||||
|
|
|
@ -37,7 +37,8 @@ const TEST_PAGE = "/browser/browser/base/content/test/dummy_page.html";
|
|||
var gTestTab, gBgTab, gTestZoom;
|
||||
|
||||
function afterZoomAndLoad(aCallback, aTab) {
|
||||
let didLoad = didZoom = false;
|
||||
let didLoad = false;
|
||||
let didZoom = false;
|
||||
aTab.linkedBrowser.addEventListener("load", function() {
|
||||
aTab.linkedBrowser.removeEventListener("load", arguments.callee, true);
|
||||
didLoad = true;
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
const TESTROOT = "http://example.com/browser/toolkit/mozapps/extensions/test/xpinstall/";
|
||||
|
||||
Components.utils.import("resource://gre/modules/LightweightThemeManager.jsm");
|
||||
var tempScope = {};
|
||||
Components.utils.import("resource://gre/modules/LightweightThemeManager.jsm", tempScope);
|
||||
var LightweightThemeManager = tempScope.LightweightThemeManager;
|
||||
|
||||
function wait_for_notification(aCallback) {
|
||||
PopupNotifications.panel.addEventListener("popupshown", function() {
|
||||
|
|
|
@ -43,6 +43,8 @@ https://example.com/browser/browser/base/content/test/redirect_bug623155.sjs#FG
|
|||
|
||||
*/
|
||||
|
||||
var gNewTab;
|
||||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ function test_latchedGesture(gesture, inc, dec, eventPrefix)
|
|||
|
||||
// Restore the gesture to its original configuration.
|
||||
gPrefService.setBoolPref(branch + "latched", oldLatchedValue);
|
||||
for (dir in cmd)
|
||||
for (let dir in cmd)
|
||||
test_removeCommand(cmd[dir]);
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ var tests = [
|
|||
},
|
||||
]
|
||||
|
||||
let gCurrentTest, gCurrentTestIndex = -1;
|
||||
let gCurrentTest, gCurrentTestIndex = -1, gTestDesc;
|
||||
// Go through the tests in both directions, to add additional coverage for
|
||||
// transitions between different states.
|
||||
let gForward = true;
|
||||
|
|
|
@ -611,7 +611,7 @@ SimpleTest.waitForClipboard = function(aExpectedStringOrValidatorFn, aSetupFn,
|
|||
return;
|
||||
}
|
||||
|
||||
data = SpecialPowers.getClipboardData(flavor);
|
||||
var data = SpecialPowers.getClipboardData(flavor);
|
||||
|
||||
if (validatorFn(data)) {
|
||||
// Don't show the success message when waiting for preExpectedVal
|
||||
|
|
|
@ -934,7 +934,7 @@ SpecialPowersAPI.prototype = {
|
|||
|
||||
// :jdm gets credit for this. ex: getPrivilegedProps(window, 'location.href');
|
||||
getPrivilegedProps: function(obj, props) {
|
||||
parts = props.split('.');
|
||||
var parts = props.split('.');
|
||||
|
||||
for (var i = 0; i < parts.length; i++) {
|
||||
var p = parts[i];
|
||||
|
|
Загрузка…
Ссылка в новой задаче