Bug 1021312 - Followup to fix incorrect test. r=me on a CLOSED TREE
authorBobby Holley <bobbyholley@gmail.com>
Fri, 06 Jun 2014 13:49:38 -0700
changeset 207650 c0f0a8689dab95288f5fa5b5048363a99ce576f4
parent 207649 6502442e61332740457eecde69db45aa0e9dc15b
child 207651 52204412c79b5376d9c6cfa6937cb9a0b8c4d618
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1021312
milestone32.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 1021312 - Followup to fix incorrect test. r=me on a CLOSED TREE
js/xpconnect/tests/unit/test_bug1021312.js
--- a/js/xpconnect/tests/unit/test_bug1021312.js
+++ b/js/xpconnect/tests/unit/test_bug1021312.js
@@ -2,15 +2,15 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 const Cu = Components.utils;
 function run_test() {
   let sb = new Cu.Sandbox(this);
   var called = false;
 
-  Cu.exportFunction(function(str) { do_check_true(str, "someString"); called = true; },
+  Cu.exportFunction(function(str) { do_check_true(/someString/.test(str)); called = true; },
                     sb, { defineAs: "func" });
   // Do something weird with the string to make sure that it doesn't get interned.
   Cu.evalInSandbox("var str = 'someString'; for (var i = 0; i < 10; ++i) str += i;", sb);
   Cu.evalInSandbox("func(str);", sb);
   do_check_true(called);
 }