Bug 1002709 - Fix regexp in cross-context-stack-1.js jit-test to not match the "beta" in the path name after a merge. r=luke, a=test-only
authorJan de Mooij <jdemooij@mozilla.com>
Tue, 29 Apr 2014 00:12:51 +0200
changeset 199276 6c7ac16fbaaaf3f6302b92fc69aef1bb1cdaeabb
parent 199275 efe8c330b742bac340a078bca288f6b0b7b893df
child 199277 2031c294fd9c95ea1bb9f855e35078367e90dbfd
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke, test-only
bugs1002709
milestone31.0a2
Bug 1002709 - Fix regexp in cross-context-stack-1.js jit-test to not match the "beta" in the path name after a merge. r=luke, a=test-only
js/src/jit-test/tests/basic/cross-context-stack-1.js
--- a/js/src/jit-test/tests/basic/cross-context-stack-1.js
+++ b/js/src/jit-test/tests/basic/cross-context-stack-1.js
@@ -1,21 +1,21 @@
 // Error().stack (ScriptFrameIter) is no longer context-bound.
 function beta() {
     evaluate("function gamma() {\nstack = Error().stack;\n };\n gamma();", {newContext: true});
 }
 function alpha() {
     beta();
 }
 alpha();
-assertEq(/alpha/.test(stack), true);
-assertEq(/beta/.test(stack), true);
-assertEq(/gamma/.test(stack), true);
-assertEq(/delta/.test(stack), false);
+assertEq(/alpha@/.test(stack), true);
+assertEq(/beta@/.test(stack), true);
+assertEq(/gamma@/.test(stack), true);
+assertEq(/delta@/.test(stack), false);
 
 function delta() {
     evaluate("stack = Error().stack", {newContext: true});
 }
 delta();
-assertEq(/alpha/.test(stack), false);
-assertEq(/beta/.test(stack), false);
-assertEq(/gamma/.test(stack), false);
-assertEq(/delta/.test(stack), true);
+assertEq(/alpha@/.test(stack), false);
+assertEq(/beta@/.test(stack), false);
+assertEq(/gamma@/.test(stack), false);
+assertEq(/delta@/.test(stack), true);