Bug 1553450 - Disable asrouter devtoolsEnabled in mochitest environment (#5055)
This commit is contained in:
Родитель
47828e6442
Коммит
7aa38393d9
|
@ -8,7 +8,6 @@ prefs =
|
|||
browser.newtabpage.activity-stream.discoverystream.endpoints=data:
|
||||
browser.newtabpage.activity-stream.feeds.section.topstories=true
|
||||
browser.newtabpage.activity-stream.feeds.section.topstories.options={}
|
||||
browser.newtabpage.activity-stream.asrouter.devtoolsEnabled=true
|
||||
|
||||
[browser_activity_stream_strings.js]
|
||||
[browser_as_load_location.js]
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
"use strict";
|
||||
|
||||
const {ASRouter} = ChromeUtils.import("resource://activity-stream/lib/ASRouter.jsm");
|
||||
const {SnippetsTestMessageProvider} = ChromeUtils.import("resource://activity-stream/lib/SnippetsTestMessageProvider.jsm");
|
||||
|
||||
test_newtab({
|
||||
async before() {
|
||||
let data = ASRouter.state.messages.find(m => m.id === "SIMPLE_BELOW_SEARCH_TEST_1");
|
||||
let data = SnippetsTestMessageProvider.getMessages().find(m => m.id === "SIMPLE_BELOW_SEARCH_TEST_1");
|
||||
ASRouter.messageChannel.sendAsyncMessage("ASRouter:parent-to-child", {type: "SET_MESSAGE", data});
|
||||
},
|
||||
test: async function test_simple_below_search_snippet() {
|
||||
|
@ -21,7 +22,7 @@ test_newtab({
|
|||
|
||||
test_newtab({
|
||||
async before() {
|
||||
let data = ASRouter.state.messages.find(m => m.id === "SIMPLE_TEST_1");
|
||||
let data = SnippetsTestMessageProvider.getMessages().find(m => m.id === "SIMPLE_TEST_1");
|
||||
ASRouter.messageChannel.sendAsyncMessage("ASRouter:parent-to-child", {type: "SET_MESSAGE", data});
|
||||
},
|
||||
test: async function test_simple_snippet() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче