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

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

Issue 1497033003: - Remove the legacy debug protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments. Created 5 years 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 | « tests/standalone/debugger/closure_bp_test.dart ('k') | 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/closure_debugger_test.dart
diff --git a/tests/standalone/debugger/closure_debugger_test.dart b/tests/standalone/debugger/closure_debugger_test.dart
deleted file mode 100644
index 7562a8ca069f822eb2c70bd0d226385e10ab1c82..0000000000000000000000000000000000000000
--- a/tests/standalone/debugger/closure_debugger_test.dart
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// This test forks a second vm process that runs this dart script as
-// a debug target.
-// Run this test with option --wire to see the json messages sent
-// between the processes.
-// Run this test with option --verbose to see the stdout and stderr output
-// of the debug target process.
-
-import "debug_lib.dart";
-
-bar(x) {
- print(x);
-}
-
-main(List<String> arguments) {
- if (RunScript(testScript, arguments)) return;
- print("Hello from debuggee");
- var f = bar;
- f("closure call");
- bar(12);
- var a = new A();
- for (var i = 0; i < 2; ++i) {
- a.foo(i);
- }
-}
-
-class A {
- A() {
- foo =
- (x) => print(x);
- }
- var foo;
-}
-
-// Expected debugger events and commands.
-var testScript = [
- MatchFrame(0, "main"), // Top frame in trace is function "main".
- SetBreakpoint(22), // Set breakpoint a line 22, at the closure call.
- Resume(),
- MatchFrame(0, "main"), // Should be at closure call.
- StepInto(),
- MatchFrames(["bar", "main"]), // Should be in closure function now.
- StepOut(),
- MatchFrame(0, "main"), // Back in main, before static call to bar().
- SetBreakpoint(15), // Breakpoint in bar();
- Resume(),
- MatchFrames(["bar", "main"]),
- SetBreakpoint(26), // Breakpoint in main() at a.field(i).
- SetBreakpoint(33), // Breakpoint in closure.
- Resume(),
- MatchFrame(0, "main"), // Should be in main().
- MatchLocals({"i": "0"}),
- StepInto(),
- StepInto(),
- MatchFrames(["A.<anonymous closure>", "main"]), // In closure function.
- Resume(),
- MatchFrame(0, "main"), // Back in main().
- MatchLocals({"i": "1"}),
- Resume(),
- MatchFrames(["A.<anonymous closure>", "main"]), // In closure function.
- Resume()
-];
« no previous file with comments | « tests/standalone/debugger/closure_bp_test.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698