Bug 1192211 - Remove Array.prototype.includes call from browser_urlbar_autoFill_backspaced.js so it doesn't permafail on non-Nightly. r=Mossop
authorDrew Willcoxon <adw@mozilla.com>
Fri, 07 Aug 2015 11:26:34 -0700
changeset 288501 fba73d3a3792f4a53528a04c12959362e1cb3ee4
parent 288500 0c01ce7ee9feb3a29358e69656fd09cbbac84e7e
child 288502 18299a261f365c5453310da7c191fc90c295593c
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1192211
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1192211 - Remove Array.prototype.includes call from browser_urlbar_autoFill_backspaced.js so it doesn't permafail on non-Nightly. r=Mossop
browser/base/content/test/general/browser_urlbar_autoFill_backspaced.js
--- a/browser/base/content/test/general/browser_urlbar_autoFill_backspaced.js
+++ b/browser/base/content/test/general/browser_urlbar_autoFill_backspaced.js
@@ -16,17 +16,17 @@ function* test_autocomplete(data) {
   is(gURLBar.value, modified, "backspaced value is as expected");
 
   yield promiseSearchComplete();
 
   ok(gURLBar.popup.richlistbox.children.length > 0, "Should get at least 1 result");
   let result = gURLBar.popup.richlistbox.children[0];
   let type = result.getAttribute("type");
   let types = type.split(/\s+/);
-  ok(types.includes(action), `The type attribute "${type}" includes the expected action "${action}"`);
+  ok(types.indexOf(action) >= 0, `The type attribute "${type}" includes the expected action "${action}"`);
 
   gURLBar.popup.hidePopup();
   yield promisePopupHidden(gURLBar.popup);
   gURLBar.blur();
 };
 
 add_task(function* () {
   registerCleanupFunction(function* () {