Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1224)

Unified Diff: test/mjsunit/debug-sourceinfo.js

Issue 147142: Make sure that message reporting works when the builtin string and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/message/overwritten-builtins.out ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-sourceinfo.js
===================================================================
--- test/mjsunit/debug-sourceinfo.js (revision 2256)
+++ test/mjsunit/debug-sourceinfo.js (working copy)
@@ -64,12 +64,12 @@
// This is the last position in the entire file (note: this equals
// file size of <debug-sourceinfo.js> - 1, since starting at 0).
-var last_position = 14072;
+var last_position = 14312;
// This is the last line of entire file (note: starting at 0).
-var last_line = 345;
+var last_line = 351;
// This is the last column of last line (note: starting at 0 and +2, due
// to trailing <CR><LF>).
-var last_column = 48;
+var last_column = 2;
// This magic number is the length or the first line comment (actually number
// of characters before 'function a(...'.
@@ -344,3 +344,9 @@
location = script.locationFromLine(1, 0, start_b);
location.restrict(7, 6);
assertEquals(' c(tru', location.sourceText());
+
+// Test that script.sourceLine(line) works.
+for (line = 0; line < num_lines_d; line++) {
+ var line_content_regexp = new RegExp(" x = " + (line + 1));
+ assertTrue(line_content_regexp.test(script.sourceLine(start_line_d + line)));
+}
« no previous file with comments | « test/message/overwritten-builtins.out ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698