Bug 847275 patch 2: Temporarily disable failures from checking of assertions in browser-chrome mochitests so that we can annotate the expected assertions before enabling. r=dao
authorL. David Baron <dbaron@dbaron.org>
Mon, 09 Sep 2013 12:21:24 +0200
changeset 146171 b560ee360b68cc543a8aa38e721bbc9a4ea3c9ea
parent 146170 12d4dea8cdfb2cd3fbeec30cdd2775900ef168e5
child 146172 279c6aca048aef638dd52acaee524adfc796e4ed
push id25244
push userryanvm@gmail.com
push dateMon, 09 Sep 2013 20:03:14 +0000
treeherdermozilla-central@f320b8c034bd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs847275
milestone26.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 847275 patch 2: Temporarily disable failures from checking of assertions in browser-chrome mochitests so that we can annotate the expected assertions before enabling. r=dao
testing/mochitest/browser-test.js
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -326,18 +326,19 @@ Tester.prototype = {
         this.lastAssertionCount = newAssertionCount;
 
         let max = testScope.__expectedMaxAsserts;
         let min = testScope.__expectedMinAsserts;
         if (numAsserts > max) {
           let msg = "Assertion count " + numAsserts +
                     " is greater than expected range " +
                     min + "-" + max + " assertions.";
-          // TEST-UNEXPECTED-FAIL
-          this.currentTest.addResult(new testResult(false, msg, "", false));
+          // TEST-UNEXPECTED-FAIL (TEMPORARILY TEST-KNOWN-FAIL)
+          //this.currentTest.addResult(new testResult(false, msg, "", false));
+          this.currentTest.addResult(new testResult(true, msg, "", true));
         } else if (numAsserts < min) {
           let msg = "Assertion count " + numAsserts +
                     " is less than expected range " +
                     min + "-" + max + " assertions.";
           // TEST-UNEXPECTED-PASS
           this.currentTest.addResult(new testResult(false, msg, "", true));
         } else if (numAsserts > 0) {
           let msg = "Assertion count " + numAsserts +