Index: test/mjsunit/debug-stepin-builtin-callback.js |
diff --git a/test/mjsunit/debug-stepin-builtin-callback.js b/test/mjsunit/debug-stepin-builtin-callback.js |
index e9d5f7ba0a5f5bf5ced31f1642f87eb839f37199..223159d4f51d2c3765ab6063ef941c709d22b89b 100644 |
--- a/test/mjsunit/debug-stepin-builtin-callback.js |
+++ b/test/mjsunit/debug-stepin-builtin-callback.js |
@@ -155,52 +155,3 @@ assertFalse(exception); |
assertEquals(17, breaks); |
Debug.setListener(null); |
- |
- |
-//Test replace callback in String.replace. |
- |
-function replace_listener(event, exec_state, event_data, data) { |
- try { |
- if (event == Debug.DebugEvent.Break) { |
- if (breaks == 0) { |
- exec_state.prepareStep(Debug.StepAction.StepIn, 2); |
- breaks = 1; |
- } else { |
- // Check whether we break at the expected line. |
- assertTrue(event_data.sourceLineText().indexOf("Expected to step") > 0); |
- } |
- } |
- } catch (e) { |
- exception = true; |
- } |
-}; |
- |
-function cb_replace(match) { |
- print("matching string: " + match); // Expected to step to this point. |
- return "_"; |
-} |
- |
-var s = "abcdefgehijke"; |
- |
-Debug.setListener(replace_listener); |
- |
-breaks = 0; |
-debugger; |
-assertEquals("ab_defgehijke", s.replace("c", cb_replace)); |
-assertFalse(exception); |
-assertEquals(1, breaks); |
- |
-breaks = 0; |
-debugger; |
-assertEquals("abcdefgehij_", s.replace(/..$/, cb_replace)); |
-assertFalse(exception); |
-assertEquals(1, breaks); |
- |
-breaks = 0; |
-debugger; |
-assertEquals("abcd_fg_hijk_", s.replace(/e/g, cb_replace)); |
-assertFalse(exception); |
-assertEquals(1, breaks); |
- |
- |
-Debug.setListener(null); |