Bug 1021312 - Followup to fix incorrect test. r=me
☠☠ backed out by 6502442e6133 ☠ ☠
authorBobby Holley <bobbyholley@gmail.com>
Fri, 06 Jun 2014 13:49:38 -0700
changeset 207637 9655784430622fdd44aa40c835d517bdd1a24548
parent 207636 1bc4f420340d535776842df93f690339fa63ec02
child 207638 eca7bdeb0c6e333669cbbe585fbc3de979762aba
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
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);
 }