mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 918806 - Remove all mention of dom.promise.enabled from other tests. r=bz,schien
This commit is contained in:
parent
02149fd481
commit
845395590c
@ -107,10 +107,8 @@ function test() {
|
||||
});
|
||||
}
|
||||
|
||||
// ensure Promise API is enabled
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.promise.enabled", true],
|
||||
['media.navigator.permission.disabled', true]
|
||||
]
|
||||
}, test);
|
||||
|
@ -59,10 +59,8 @@ function test() {
|
||||
});
|
||||
}
|
||||
|
||||
// ensure Promise API is enabled
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.promise.enabled", true],
|
||||
['media.navigator.permission.disabled', true]
|
||||
]
|
||||
}, test);
|
||||
|
@ -60,10 +60,8 @@ function test() {
|
||||
});
|
||||
}
|
||||
|
||||
// ensure Promise API is enabled
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.promise.enabled", true],
|
||||
['media.navigator.permission.disabled', true]
|
||||
]
|
||||
}, test);
|
||||
|
@ -96,10 +96,8 @@ function test() {
|
||||
});
|
||||
}
|
||||
|
||||
// ensure Promise API is enabled
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.promise.enabled", true],
|
||||
['media.navigator.permission.disabled', true]
|
||||
]
|
||||
}, test);
|
||||
|
@ -26,7 +26,6 @@
|
||||
{ "type": "webapps-manage", "allow": 1, "context": document }],
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.promise.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, function() {
|
||||
gGenerator.next(); });
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", false]]}, runTest);
|
||||
},
|
||||
|
@ -120,8 +120,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.ipc.browser_frames.oop_by_default", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
|
@ -100,8 +100,7 @@
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
</script>
|
||||
|
@ -76,8 +76,7 @@
|
||||
|
||||
// Preferences
|
||||
function() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true],
|
||||
["dom.datastore.enabled", true],
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.datastore.enabled", true],
|
||||
["dom.testing.ignore_ipc_principal", true],
|
||||
["dom.testing.datastore_enabled_for_hosted_apps", true]]}, runTest);
|
||||
},
|
||||
|
@ -89,7 +89,6 @@ let emulator = (function() {
|
||||
function _startTest(permissions, test) {
|
||||
function permissionSetUp() {
|
||||
SpecialPowers.setBoolPref("dom.mozSettings.enabled", true);
|
||||
SpecialPowers.setBoolPref("dom.promise.enabled", true);
|
||||
for (let per of permissions) {
|
||||
SpecialPowers.addPermission(per, true, document);
|
||||
}
|
||||
@ -97,7 +96,6 @@ function _startTest(permissions, test) {
|
||||
|
||||
function permissionTearDown() {
|
||||
SpecialPowers.clearUserPref("dom.mozSettings.enabled");
|
||||
SpecialPowers.clearUserPref("dom.promise.enabled");
|
||||
for (let per of permissions) {
|
||||
SpecialPowers.removePermission(per, document);
|
||||
}
|
||||
|
@ -50,9 +50,7 @@
|
||||
}
|
||||
|
||||
function nativeCallback() {
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.promise.enabled", true]]}, function() {
|
||||
new Promise(function(resolve, reject) { resolve(42); }).then(console.log);
|
||||
});
|
||||
new Promise(function(resolve, reject) { resolve(42); }).then(console.log);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user