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

Side by Side Diff: tools/coverage.dart

Issue 51043004: Remove uses of Options from tools directory. Fix platform_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/standalone/io/platform_test.dart ('k') | tools/ddbg.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // This test forks a second vm process that runs a dart script as 5 // This test forks a second vm process that runs a dart script as
6 // a debug target, single stepping through the entire program, and 6 // a debug target, single stepping through the entire program, and
7 // recording each breakpoint. At the end, a coverage map of the source 7 // recording each breakpoint. At the end, a coverage map of the source
8 // is printed. 8 // is printed.
9 // 9 //
10 // Usage: dart coverage.dart [--wire] [--verbose] target_script.dart 10 // Usage: dart coverage.dart [--wire] [--verbose] target_script.dart
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 } else if (char == '"') { 516 } else if (char == '"') {
517 // Strings can contain braces. Skip their content. 517 // Strings can contain braces. Skip their content.
518 index = skipString(index); 518 index = skipString(index);
519 } 519 }
520 } 520 }
521 return 0; 521 return 0;
522 } 522 }
523 } 523 }
524 524
525 525
526 void main() { 526 void main(List<String> arguments) {
527 var options = new Options();
528 var targetOpts = [ "--debug:0" ]; 527 var targetOpts = [ "--debug:0" ];
529 for (String str in options.arguments) { 528 for (String str in arguments) {
530 switch (str) { 529 switch (str) {
531 case "--verbose": 530 case "--verbose":
532 showDebuggeeOutput = true; 531 showDebuggeeOutput = true;
533 break; 532 break;
534 case "--wire": 533 case "--wire":
535 verboseWire = true; 534 verboseWire = true;
536 break; 535 break;
537 default: 536 default:
538 targetOpts.add(str); 537 targetOpts.add(str);
539 break; 538 break;
540 } 539 }
541 } 540 }
542 541
543 Process.start(options.executable, targetOpts).then((Process process) { 542 Process.start(Platform.executable, targetOpts).then((Process process) {
544 process.stdin.close(); 543 process.stdin.close();
545 debugger = new Debugger(process); 544 debugger = new Debugger(process);
546 }); 545 });
547 } 546 }
OLDNEW
« no previous file with comments | « tests/standalone/io/platform_test.dart ('k') | tools/ddbg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698