Backed out changeset d520f1245f5c (bug 1288885)

--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_storage.js => toolkit/components/extensions/test/mochitest/test_ext_storage.html
This commit is contained in:
Sebastian Hengst 2016-07-28 10:06:34 +02:00
Родитель 41ab1152be
Коммит 6b1348baf3
3 изменённых файлов: 21 добавлений и 7 удалений

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

@ -69,6 +69,7 @@ skip-if = (os == 'android' || buildapp == 'b2g') # sender.tab is undefined on b2
skip-if = (os == 'android' || buildapp == 'b2g') # sender.tab is undefined on b2g. Bug 1258975 on android.
[test_ext_sendmessage_doublereply.html]
skip-if = (os == 'android' || buildapp == 'b2g') # sender.tab is undefined on b2g. Bug 1258975 on android.
[test_ext_storage.html]
[test_ext_storage_content.html]
[test_ext_storage_tab.html]
skip-if = os == 'android' # Android does not currently support tabs.

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

@ -1,5 +1,16 @@
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=2 et tw=80: */
<!DOCTYPE HTML>
<html>
<head>
<title>WebExtension test</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/SpawnTask.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/ExtensionTestUtils.js"></script>
<script type="text/javascript" src="head.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<script type="text/javascript">
"use strict";
function backgroundScript() {
@ -160,7 +171,7 @@ function backgroundScript() {
}
let extensionData = {
background: backgroundScript,
background: "(" + backgroundScript.toString() + ")()",
manifest: {
permissions: ["storage"],
},
@ -172,11 +183,14 @@ add_task(function* test_backgroundScript() {
yield extension.startup();
yield extension.awaitMessage("invalidate");
Services.obs.notifyObservers(null, "extension-invalidate-storage-cache", "");
SpecialPowers.invalidateExtensionStorageCache();
extension.sendMessage("invalidated");
yield extension.awaitFinish("storage");
yield extension.unload();
});
</script>
</body>
</html>

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

@ -22,7 +22,6 @@ skip-if = toolkit == 'gonk' || appname == "thunderbird"
[test_ext_runtime_sendMessage_no_receiver.js]
[test_ext_schemas.js]
[test_ext_simple.js]
[test_ext_storage.js]
[test_getAPILevelForWindow.js]
[test_locale_converter.js]
[test_locale_data.js]