Bug 1302110 - disable the find counter specific tests on DEBUG builds only to stop frequent intermittents. r?Gijs draft
authorMike de Boer <mdeboer@mozilla.com>
Fri, 04 Nov 2016 10:22:30 +0100
changeset 433803 43c03ea7f57c3a1e9fbd7d08491db7ecfc3fb075
parent 433802 ad086fddd66a309a119289f62fb782aa51bec15d
child 535958 a59f3b13b1f4f5e6b36e4c67ef33bc387c9c51d1
push id34653
push usermdeboer@mozilla.com
push dateFri, 04 Nov 2016 09:25:59 +0000
reviewersGijs
bugs1302110
milestone52.0a1
Bug 1302110 - disable the find counter specific tests on DEBUG builds only to stop frequent intermittents. r?Gijs 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.";
@@ -132,22 +133,24 @@
       // 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();
       }
 
-      yield testFindCountUI();
-      gFindBar.close();
-      ok(gFindBar.hidden, "Failed to close findbar after testFindCountUI");
-      yield testFindCountUI(true);
-      gFindBar.close();
-      ok(gFindBar.hidden, "Failed to close findbar after testFindCountUI - linksOnly");
+      if (!AppConstants.DEBUG) {
+        yield testFindCountUI();
+        gFindBar.close();
+        ok(gFindBar.hidden, "Failed to close findbar after testFindCountUI");
+        yield testFindCountUI(true);
+        gFindBar.close();
+        ok(gFindBar.hidden, "Failed to close findbar after testFindCountUI - linksOnly");
+      }
 
       yield openFindbar();
       yield testFindAfterCaseChanged();
       gFindBar.close();
       yield openFindbar();
       yield testFailedStringReset();
       gFindBar.close();
       yield testQuickFindClose();