зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1227451: Follow-up: Fix ESLint errors. r=trivial
--HG-- extra : commitid : FetQWqfKA2Z
This commit is contained in:
Родитель
d72a5b435c
Коммит
7c21dd4518
|
@ -13,30 +13,29 @@
|
|||
<script type="text/javascript">
|
||||
"use strict";
|
||||
|
||||
add_task(function* test_alarm_without_permissions() {
|
||||
function backgroundScript() {
|
||||
let ALARM_NAME = "test_ext_alarms";
|
||||
browser.test.log("running alarm script");
|
||||
add_task(function* test_alarm_without_permissions() {
|
||||
function backgroundScript() {
|
||||
browser.test.log("running alarm script");
|
||||
|
||||
browser.test.assertTrue(!browser.alarms,
|
||||
"alarm API should not be available if the alarm permission is not required")
|
||||
browser.test.notifyPass("alarms_permission");
|
||||
}
|
||||
browser.test.assertTrue(!browser.alarms,
|
||||
"alarm API should not be available if the alarm permission is not required");
|
||||
browser.test.notifyPass("alarms_permission");
|
||||
}
|
||||
|
||||
let extensionData = {
|
||||
background: "(" + backgroundScript.toString() + ")()",
|
||||
manifest: {
|
||||
permissions: [],
|
||||
},
|
||||
};
|
||||
let extensionData = {
|
||||
background: "(" + backgroundScript.toString() + ")()",
|
||||
manifest: {
|
||||
permissions: [],
|
||||
},
|
||||
};
|
||||
|
||||
let extension = ExtensionTestUtils.loadExtension(extensionData);
|
||||
yield extension.startup();
|
||||
info("extension loaded");
|
||||
yield extension.awaitFinish("alarms_permission");
|
||||
yield extension.unload();
|
||||
info("extension unloaded");
|
||||
});
|
||||
let extension = ExtensionTestUtils.loadExtension(extensionData);
|
||||
yield extension.startup();
|
||||
info("extension loaded");
|
||||
yield extension.awaitFinish("alarms_permission");
|
||||
yield extension.unload();
|
||||
info("extension unloaded");
|
||||
});
|
||||
|
||||
|
||||
add_task(function* test_alarm_fires() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче