Bug 1227451: Follow-up: Fix ESLint errors. r=trivial

--HG--
extra : commitid : FetQWqfKA2Z
This commit is contained in:
Kris Maglione 2016-01-05 15:54:32 -08:00
Родитель d72a5b435c
Коммит 7c21dd4518
1 изменённых файлов: 20 добавлений и 21 удалений

Просмотреть файл

@ -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() {