| OLD | NEW |
| 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("../../../tools/testing/dart/test_progress.dart"); | 7 #import("../../../tools/testing/dart/test_progress.dart"); |
| 8 #import("../../../tools/testing/dart/test_runner.dart"); | 8 #import("../../../tools/testing/dart/test_runner.dart"); |
| 9 #import("../../../tools/testing/dart/test_options.dart"); | 9 #import("../../../tools/testing/dart/test_options.dart"); |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 [dummyCommand], | 21 [dummyCommand], |
| 22 configuration, | 22 configuration, |
| 23 (_) => null, | 23 (_) => null, |
| 24 new Set<String>.from(['PASS'])); | 24 new Set<String>.from(['PASS'])); |
| 25 | 25 |
| 26 // Simulate the test.dart use of the progress indicator. | 26 // Simulate the test.dart use of the progress indicator. |
| 27 progress.testAdded(); | 27 progress.testAdded(); |
| 28 progress.allTestsKnown(); | 28 progress.allTestsKnown(); |
| 29 progress.start(testCase); | 29 progress.start(testCase); |
| 30 new CommandOutput.fromCase(testCase, dummyCommand, 1, false, false, [], [], | 30 new CommandOutput.fromCase(testCase, dummyCommand, 1, false, false, [], [], |
| 31 new Date.now().difference(startTime)); | 31 new Date.now().difference(startTime), false); |
| 32 progress.done(testCase); | 32 progress.done(testCase); |
| 33 progress.allDone(); | 33 progress.allDone(); |
| 34 } | 34 } |
| OLD | NEW |