| 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 import "dart:io"; | 5 import "dart:io"; |
| 6 import "dart:isolate"; | 6 import "dart:isolate"; |
| 7 import "dart:async"; |
| 7 import "../../../tools/testing/dart/test_runner.dart"; | 8 import "../../../tools/testing/dart/test_runner.dart"; |
| 8 import "../../../tools/testing/dart/status_file_parser.dart"; | 9 import "../../../tools/testing/dart/status_file_parser.dart"; |
| 9 import "../../../tools/testing/dart/test_options.dart"; | 10 import "../../../tools/testing/dart/test_options.dart"; |
| 10 import "process_test_util.dart"; | 11 import "process_test_util.dart"; |
| 11 | 12 |
| 12 class TestController { | 13 class TestController { |
| 13 static const int numTests = 4; | 14 static const int numTests = 4; |
| 14 static int numCompletedTests = 0; | 15 static int numCompletedTests = 0; |
| 15 | 16 |
| 16 // Used as TestCase.completedCallback. | 17 // Used as TestCase.completedCallback. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 break; | 87 break; |
| 87 case 'timeout': | 88 case 'timeout': |
| 88 // Run for 10 seconds, then exit. This tests a 2 second timeout. | 89 // Run for 10 seconds, then exit. This tests a 2 second timeout. |
| 89 new Timer(10 * 1000, (t){ }); | 90 new Timer(10 * 1000, (t){ }); |
| 90 break; | 91 break; |
| 91 default: | 92 default: |
| 92 throw "Unknown option ${arguments[0]} passed to test_runner_test"; | 93 throw "Unknown option ${arguments[0]} passed to test_runner_test"; |
| 93 } | 94 } |
| 94 } | 95 } |
| 95 } | 96 } |
| OLD | NEW |