| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async' show | 5 import 'dart:async' show |
| 6 Future, | 6 Future, |
| 7 StreamIterator; | 7 StreamIterator; |
| 8 | 8 |
| 9 import 'dart:convert' show | 9 import 'dart:convert' show |
| 10 LineSplitter, | 10 LineSplitter, |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 }); | 237 }); |
| 238 | 238 |
| 239 Test listProcesses = new Test("debugger_list_processes", | 239 Test listProcesses = new Test("debugger_list_processes", |
| 240 (InteractiveDebuggerTestContext context) async { | 240 (InteractiveDebuggerTestContext context) async { |
| 241 await context.runCommandAndExpectPrompt("b resumeChild"); | 241 await context.runCommandAndExpectPrompt("b resumeChild"); |
| 242 await context.runCommandAndExpectPrompt("r"); | 242 await context.runCommandAndExpectPrompt("r"); |
| 243 await context.runCommandAndExpectPrompt("lp"); | 243 await context.runCommandAndExpectPrompt("lp"); |
| 244 await context.runCommandAndExpectPrompt("c"); | 244 await context.runCommandAndExpectPrompt("c"); |
| 245 await context.runCommandAndExpectPrompt("lp"); | 245 await context.runCommandAndExpectPrompt("lp"); |
| 246 await context.runCommandAndExpectPrompt("c"); | 246 await context.runCommandAndExpectPrompt("c"); |
| 247 await context.expectExitCode(0); | 247 await context.quitWithoutError(); |
| 248 }); | 248 }); |
| 249 | 249 |
| 250 Test relativePath = new Test("debugger_relative_file_reference", | 250 Test relativePath = new Test("debugger_relative_file_reference", |
| 251 (InteractiveDebuggerTestContext context) async { | 251 (InteractiveDebuggerTestContext context) async { |
| 252 await context.runCommandAndExpectPrompt("bf ${context.test.filePath} 13"); | 252 await context.runCommandAndExpectPrompt("bf ${context.test.filePath} 13"); |
| 253 await context.expectOut( | 253 await context.expectOut( |
| 254 "### set breakpoint id: '0' method: 'main' bytecode index: '0'"); | 254 "### set breakpoint id: '0' method: 'main' bytecode index: '0'"); |
| 255 await context.runCommandAndExpectPrompt("r"); | 255 await context.runCommandAndExpectPrompt("r"); |
| 256 await context.quitWithoutError(); | 256 await context.quitWithoutError(); |
| 257 }, // Working directory that is not the dartino-root directory. | 257 }, // Working directory that is not the dartino-root directory. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 287 await context.quitWithoutError(); | 287 await context.quitWithoutError(); |
| 288 }, filepath: "debugger_trivial.dart"); | 288 }, filepath: "debugger_trivial.dart"); |
| 289 | 289 |
| 290 main(List<String> args) async { | 290 main(List<String> args) async { |
| 291 for (Test test in tests) { | 291 for (Test test in tests) { |
| 292 if (args.any((arg) => test.name.indexOf(arg) >= 0)) { | 292 if (args.any((arg) => test.name.indexOf(arg) >= 0)) { |
| 293 await test.run(new BuildViaSessionTestContext()); | 293 await test.run(new BuildViaSessionTestContext()); |
| 294 } | 294 } |
| 295 } | 295 } |
| 296 } | 296 } |
| OLD | NEW |