Backed out changeset 75cc30c9a401 (bug 1145049)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Wed, 15 Apr 2015 16:12:09 +0200
changeset 239328 beecdf8e44a44f7f358d98314feff2a1565df44b
parent 239327 cdf2a0056d6abc01235ffd35a7b02e91fbbccc30
child 239329 77a8ea1b27c84cfb98c4024d7627d8bc8f4c1ba1
push id28589
push userryanvm@gmail.com
push dateWed, 15 Apr 2015 19:13:10 +0000
treeherdermozilla-central@24ccca4707eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1145049
milestone40.0a1
backs out75cc30c9a4017b48609d075408c87574f38cc0c7
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
Backed out changeset 75cc30c9a401 (bug 1145049)
testing/mochitest/browser-test.js
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -904,19 +904,19 @@ function testMessage(aName) {
 // cannot conflict with global variables used in tests.
 function testScope(aTester, aTest, expected) {
   this.__tester = aTester;
   this.__expected = expected;
   this.__num_failed = 0;
 
   var self = this;
   this.ok = function test_ok(condition, name, diag, stack) {
-    if (self.__expected == 'fail') {
+    if (this.__expected == 'fail') {
         if (!condition) {
-          self.__num_failed++;
+          this.__num_failed++;
           condition = true;
         }
     }
 
     aTest.addResult(new testResult(condition, name, diag, false,
                                    stack ? stack : Components.stack.caller));
   };
   this.is = function test_is(a, b, name) {