Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3062 from k88hudson/snippets-test-patch
Browse files Browse the repository at this point in the history
tests(mc): #3056 Patch for pine to disable snippets in tests
  • Loading branch information
Dan Mosedale committed Aug 1, 2017
2 parents 94603de + fd53458 commit 956a8fb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions mozilla-central-patches/disable-snippets.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
diff --git a/layout/tools/reftest/reftest-preferences.js b/layout/tools/reftest/reftest-preferences.js
--- a/layout/tools/reftest/reftest-preferences.js
+++ b/layout/tools/reftest/reftest-preferences.js
@@ -144,5 +144,6 @@ user_pref("media.openUnsupportedTypeWith
// consumer automation; not vendor testing.
user_pref("marionette.prefs.recommended", false);

-// Make sure we don't reach out to the network with pocket
+// Make sure we don't reach out to the network with pocket or snippets
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
+user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
diff --git a/testing/profiles/prefs_general.js b/testing/profiles/prefs_general.js
--- a/testing/profiles/prefs_general.js
+++ b/testing/profiles/prefs_general.js
@@ -305,6 +305,7 @@ user_pref("browser.aboutHomeSnippets.upd
user_pref("browser.newtabpage.activity-stream.default.sites", "");
user_pref("browser.newtabpage.activity-stream.telemetry", false);
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
+user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);

// Don't fetch directory tiles data from real servers
user_pref("browser.newtabpage.directory.source", 'data:application/json,{"testing":1}');
diff --git a/testing/talos/talos/config.py b/testing/talos/talos/config.py
--- a/testing/talos/talos/config.py
+++ b/testing/talos/talos/config.py
@@ -100,6 +100,7 @@ DEFAULTS = dict(
'browser.newtabpage.activity-stream.default.sites': '',
'browser.newtabpage.activity-stream.telemetry': False,
'browser.newtabpage.activity-stream.feeds.section.topstories': False,
+ 'browser.newtabpage.activity-stream.feeds.snippets': False,
'browser.newtabpage.directory.source':
'${webserver}/directoryLinks.json',
'browser.newtabpage.introShown': True,

0 comments on commit 956a8fb

Please sign in to comment.