mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 999604 - fix browser-chrome tests in toolkit/content/ to not replace the original tab; r=ehsan
This commit is contained in:
parent
9a84687a23
commit
2160852608
@ -3,6 +3,8 @@ function test()
|
||||
const kPrefName_AutoScroll = "general.autoScroll";
|
||||
Services.prefs.setBoolPref(kPrefName_AutoScroll, false);
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
var doc;
|
||||
|
||||
function startLoad(dataUri) {
|
||||
@ -26,7 +28,6 @@ function test()
|
||||
Services.prefs.clearUserPref(kPrefName_AutoScroll);
|
||||
|
||||
// cleaning-up
|
||||
gBrowser.addTab("about:blank");
|
||||
gBrowser.removeCurrentTab();
|
||||
|
||||
// waitForFocus() fixes a failure in the next test if the latter runs too soon.
|
||||
|
@ -3,6 +3,8 @@ function test()
|
||||
const kPrefName_AutoScroll = "general.autoScroll";
|
||||
Services.prefs.setBoolPref(kPrefName_AutoScroll, true);
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
const expectScrollNone = 0;
|
||||
const expectScrollVert = 1;
|
||||
const expectScrollHori = 2;
|
||||
@ -125,7 +127,6 @@ function test()
|
||||
Services.prefs.clearUserPref(kPrefName_AutoScroll);
|
||||
|
||||
// cleaning-up
|
||||
gBrowser.addTab("about:blank");
|
||||
gBrowser.removeCurrentTab();
|
||||
|
||||
// waitForFocus() fixes a failure in the next test if the latter runs too soon.
|
||||
|
@ -12,10 +12,11 @@ function test() {
|
||||
waitForExplicitFinish();
|
||||
var fileName;
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
gBrowser.loadURI("data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub//ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcppV0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7");
|
||||
|
||||
registerCleanupFunction(function () {
|
||||
gBrowser.addTab().linkedBrowser.stop();
|
||||
gBrowser.removeCurrentTab();
|
||||
});
|
||||
|
||||
|
@ -3,6 +3,8 @@ function test()
|
||||
const kPrefName_AutoScroll = "general.autoScroll";
|
||||
Services.prefs.setBoolPref(kPrefName_AutoScroll, true);
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
const kNoKeyEvents = 0;
|
||||
const kKeyDownEvent = 1;
|
||||
const kKeyPressEvent = 2;
|
||||
@ -126,7 +128,6 @@ function test()
|
||||
Services.prefs.clearUserPref(kPrefName_AutoScroll);
|
||||
|
||||
// cleaning-up
|
||||
gBrowser.addTab().linkedBrowser.stop();
|
||||
gBrowser.removeCurrentTab();
|
||||
|
||||
finish();
|
||||
|
@ -17,10 +17,11 @@ MockFilePicker.init(window);
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
gBrowser.selectedTab = gBrowser.addTab();
|
||||
|
||||
gBrowser.loadURI("http://mochi.test:8888/browser/toolkit/content/tests/browser/data/post_form_outer.sjs");
|
||||
|
||||
registerCleanupFunction(function () {
|
||||
gBrowser.addTab();
|
||||
gBrowser.removeCurrentTab();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user