Index: test/mjsunit/mirror-script.js |
diff --git a/test/mjsunit/mirror-script.js b/test/mjsunit/mirror-script.js |
index ed0dd12acea3c5c1f327b13a203889b762a11849..7e3891a9f75285b41acca7953b52bea476dde6da 100644 |
--- a/test/mjsunit/mirror-script.js |
+++ b/test/mjsunit/mirror-script.js |
@@ -83,16 +83,7 @@ function testScriptMirror(f, file_name, file_lines, type, compilation_type, |
// Test the script mirror for different functions. |
-testScriptMirror(function(){}, 'mirror-script.js', 99, 2, 0); |
+testScriptMirror(function(){}, 'mirror-script.js', 90, 2, 0); |
testScriptMirror(Math.abs, 'native math.js', -1, 0, 0); |
testScriptMirror(eval('(function(){})'), null, 1, 2, 1, '(function(){})', 87); |
testScriptMirror(eval('(function(){\n })'), null, 2, 2, 1, '(function(){\n })', 88); |
- |
-// Test taking slices of source. |
-var mirror = debug.MakeMirror(eval('(function(){\n 1;\n})')).script(); |
-assertEquals('(function(){\n', mirror.sourceSlice(0, 1).sourceText()); |
-assertEquals(' 1;\n', mirror.sourceSlice(1, 2).sourceText()); |
-assertEquals('})', mirror.sourceSlice(2, 3).sourceText()); |
-assertEquals('(function(){\n 1;\n', mirror.sourceSlice(0, 2).sourceText()); |
-assertEquals(' 1;\n})', mirror.sourceSlice(1, 3).sourceText()); |
-assertEquals('(function(){\n 1;\n})', mirror.sourceSlice(0, 3).sourceText()); |