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

Unified Diff: tests/standalone/debugger/nosuchmethod_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
Index: tests/standalone/debugger/nosuchmethod_debugger_test.dart
diff --git a/tests/standalone/debugger/nosuchmethod_debugger_test.dart b/tests/standalone/debugger/nosuchmethod_debugger_test.dart
deleted file mode 100644
index 10b6855bc5f0cd40d4a9d8468e3ce9d8b7ad66b6..0000000000000000000000000000000000000000
--- a/tests/standalone/debugger/nosuchmethod_debugger_test.dart
+++ /dev/null
@@ -1,48 +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";
-
-main(List<String> arguments) {
- if (RunScript(testScript, arguments)) return;
- print("Hello from debuggee");
- var a = new A();
- for (var i = 0; i < 2; ++i) {
- a.foo(i);
- }
-}
-
-class A {
- noSuchMethod(m) {
- print(m.positionalArguments[0]);
- }
-}
-
-// Expected debugger events and commands.
-var testScript = [
- MatchFrame(0, "main"), // Top frame in trace is function "main".
- SetBreakpoint(19), // Set breakpoint at a.foo(i).
- Resume(),
- MatchFrame(0, "main"), // Should be at closure call.
- MatchLocals({"i": "0"}),
- StepInto(),
- StepInto(),
- MatchFrames(["A.noSuchMethod", "main"]),
- StepOut(),
- MatchFrame(0, "main"), // Back in main.
- Resume(),
- MatchFrame(0, "main"), // Still in main back at a.foo(i).
- MatchLocals({"i": "1"}),
- StepInto(),
- StepInto(),
- MatchFrames(["A.noSuchMethod", "main"]), // Second invocation.
- Resume()
-];
« no previous file with comments | « tests/standalone/debugger/mixin_closure_debugger_test.dart ('k') | tests/standalone/debugger/step_inout_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698