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

Unified Diff: tests/standalone/debugger/basic_debugger_test.dart

Issue 18558005: Added a test to cover debugging step over. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/debugger/basic_debugger_test.dart
===================================================================
--- tests/standalone/debugger/basic_debugger_test.dart (revision 24705)
+++ tests/standalone/debugger/basic_debugger_test.dart (working copy)
@@ -12,6 +12,10 @@
import "debug_lib.dart";
bar(x) {
+ var localStr = "foo";
+ int localInt = 1;
+ double localDouble = 1.1;
+
print(x);
}
@@ -36,11 +40,13 @@
MatchFrame(0, "main"), // Top frame in trace is function "main".
Step(),
MatchFrame(0, "main"), // Should still be in "main".
- SetBreakpoint(15), // Set breakpoint a line 15, in function bar.
+ SetBreakpoint(19), // Set breakpoint a line 19, in function bar.
Resume(),
MatchFrames(["bar", "foo", "main"]),
MatchFrame(1, "foo"),
- SetBreakpoint(18), // Set breakpoint a line 18, in function bam.
+ MatchLocals({"localStr": '"foo"', "localInt": "1", "localDouble": "1.1",
+ "x": '"baz"'}),
+ SetBreakpoint(22), // Set breakpoint a line 22, in function bam.
Resume(),
MatchFrames(["bam", "main"]),
Resume(),
« no previous file with comments | « no previous file | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698