Bug 1302110 - Disable the find counter specific tests on DEBUG builds only to stop frequent intermittents. r=Gijs, a=test-only
authorMike de Boer <mdeboer@mozilla.com>
Fri, 04 Nov 2016 10:22:30 +0100
changeset 358676 87841f3bfc9d99a37e31cd43b2e2d03c325af84f
parent 358675 278308ec64f59e5bc2f02511dbaba353c881a76d
child 358677 186178aa5484ac63b926e4307203c6febba5c48b
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, test-only
bugs1302110
milestone51.0a2
Bug 1302110 - Disable the find counter specific tests on DEBUG builds only to stop frequent intermittents. r=Gijs, a=test-only MozReview-Commit-ID: 2Pwj6wXyqjm
toolkit/content/tests/chrome/findbar_window.xul
--- a/toolkit/content/tests/chrome/findbar_window.xul
+++ b/toolkit/content/tests/chrome/findbar_window.xul
@@ -16,16 +16,17 @@
         onload="onLoad();"
         title="findbar test">
 
   <script type="application/javascript"
           src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"/>
 
   <script type="application/javascript"><![CDATA[
     const {interfaces: Ci, classes: Cc, results: Cr, utils: Cu} = Components;
+    Cu.import("resource://gre/modules/AppConstants.jsm");
     Cu.import("resource://gre/modules/Task.jsm");
     Cu.import("resource://testing-common/ContentTask.jsm");
     ContentTask.setTestScope(window.opener.wrappedJSObject);
 
     var gPrefsvc = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
 
     const SAMPLE_URL = "http://www.mozilla.org/";
     const SAMPLE_TEXT = "Some text in a text field.";
@@ -131,17 +132,17 @@
       ok(gFindBar.hidden, "Failed to close findbar after testFindbarSelection");
       // TODO: I don't know how to drop a content element on a chrome input.
       if (!gBrowser.hasAttribute("remote"))
         testDrop();
       yield testQuickFindLink();
       if (gHasFindClipboard) {
         yield testStatusText();
       }
-      if (!gBrowser.hasAttribute("remote")) {
+      if (!gBrowser.hasAttribute("remote") && !AppConstants.DEBUG) {
         yield testFindCountUI();
         gFindBar.close();
         ok(gFindBar.hidden, "Failed to close findbar after testFindCountUI");
       }
       yield openFindbar();
       yield testFindAfterCaseChanged();
       gFindBar.close();
       yield openFindbar();