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: tests/standalone/io/test_runner_exit_code_script.dart

Issue 12794002: Move Options to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Simulates a use of test_progress during a failing run of test.dart. 5 // Simulates a use of test_progress during a failing run of test.dart.
6 6
7 import "dart:io";
7 import "../../../tools/testing/dart/test_progress.dart"; 8 import "../../../tools/testing/dart/test_progress.dart";
8 import "../../../tools/testing/dart/test_runner.dart"; 9 import "../../../tools/testing/dart/test_runner.dart";
9 import "../../../tools/testing/dart/test_options.dart"; 10 import "../../../tools/testing/dart/test_options.dart";
10 11
11 main() { 12 main() {
12 var progressType = new Options().arguments[0]; 13 var progressType = new Options().arguments[0];
13 // Build a progress indicator. 14 // Build a progress indicator.
14 var startTime = new DateTime.now(); 15 var startTime = new DateTime.now();
15 var progress = 16 var progress =
16 new ProgressIndicator.fromName(progressType, startTime, false); 17 new ProgressIndicator.fromName(progressType, startTime, false);
(...skipping 11 matching lines...) Expand all
28 29
29 // Simulate the test.dart use of the progress indicator. 30 // Simulate the test.dart use of the progress indicator.
30 progress.testAdded(); 31 progress.testAdded();
31 progress.allTestsKnown(); 32 progress.allTestsKnown();
32 progress.start(testCase); 33 progress.start(testCase);
33 new CommandOutput.fromCase(testCase, dummyCommand, 1, false, false, [], [], 34 new CommandOutput.fromCase(testCase, dummyCommand, 1, false, false, [], [],
34 new DateTime.now().difference(startTime), false); 35 new DateTime.now().difference(startTime), false);
35 progress.done(testCase); 36 progress.done(testCase);
36 progress.allDone(); 37 progress.allDone();
37 } 38 }
OLDNEW
« no previous file with comments | « tests/standalone/io/process_check_arguments_script.dart ('k') | tests/standalone/io/test_runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698