Index: test/mjsunit/debug-setbreakpoint.js |
=================================================================== |
--- test/mjsunit/debug-setbreakpoint.js (revision 4865) |
+++ test/mjsunit/debug-setbreakpoint.js (working copy) |
@@ -134,6 +134,7 @@ |
}; |
function g() { |
+ // Comment. |
f(); |
}; |
@@ -184,3 +185,8 @@ |
sourceUrlFunc(); |
assertTrue(breakListenerCalled, "Break listener not called on breakpoint set by sourceURL"); |
+ |
+// Set a break point on a line with the comment, and check that actual position |
+// is the next line after the comment. |
+var number = Debug.setScriptBreakPointById(g_script_id, g_line + 1); |
+assertEquals(g_line + 2, Debug.findBreakPoint(number).actual_location.line); |