mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1021312
- Followup to fix incorrect test. r=me
This commit is contained in:
parent
1dc2f20bd4
commit
518f1c8a2b
@ -7,7 +7,7 @@ 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);
|
||||
|
Loading…
Reference in New Issue
Block a user