Bug 1320782 - Disable eslint no-cpows-in-tests check for browser_ext_omnibox.js r=aswan

MozReview-Commit-ID: 3BNSejB1lwF

--HG--
extra : rebase_source : 0425db76281416e621a557891849fd0d77b2bb8a
This commit is contained in:
Matthew Wein 2016-11-29 15:34:41 -05:00
Родитель 069390233f
Коммит e4927a1aaf
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -2,6 +2,12 @@
/* vim: set sts=2 sw=2 et tw=80: */
"use strict";
// The no-cpows-in-tests check isn't very smart, simply warning if it finds
// a variable named `content`. For Chrome compatibility, the Omnibox API uses
// that name for setting the text of a suggestion, and that's all this test uses
// it for, so we can disable it for this test.
/* eslint-disable mozilla/no-cpows-in-tests */
function* setup() {
const SUGGEST_URLBAR_PREF = "browser.urlbar.suggest.searches";
Services.prefs.setBoolPref(SUGGEST_URLBAR_PREF, false);