| 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:isolate"; | 5 import "dart:isolate"; |
| 6 import "dart:async"; | 6 import "dart:async"; |
| 7 import "dart:utf"; | 7 import "dart:utf"; |
| 8 import "../../../tools/testing/dart/test_runner.dart"; | 8 import "../../../tools/testing/dart/test_runner.dart"; |
| 9 import "../../../tools/testing/dart/test_suite.dart"; | 9 import "../../../tools/testing/dart/test_suite.dart"; |
| 10 import "../../../tools/testing/dart/status_file_parser.dart"; | 10 import "../../../tools/testing/dart/status_file_parser.dart"; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } else { | 107 } else { |
| 108 switch (arguments[0]) { | 108 switch (arguments[0]) { |
| 109 case 'pass': | 109 case 'pass': |
| 110 return; | 110 return; |
| 111 case 'fail-unexpected': | 111 case 'fail-unexpected': |
| 112 case 'fail': | 112 case 'fail': |
| 113 Expect.fail("This test always fails, to test the test scripts."); | 113 Expect.fail("This test always fails, to test the test scripts."); |
| 114 break; | 114 break; |
| 115 case 'timeout': | 115 case 'timeout': |
| 116 // Run for 10 seconds, then exit. This tests a 2 second timeout. | 116 // Run for 10 seconds, then exit. This tests a 2 second timeout. |
| 117 new Timer(10 * 1000, (t){ }); | 117 new Timer(new Duration(seconds: 10), (){ }); |
| 118 break; | 118 break; |
| 119 default: | 119 default: |
| 120 throw "Unknown option ${arguments[0]} passed to test_runner_test"; | 120 throw "Unknown option ${arguments[0]} passed to test_runner_test"; |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 } | 123 } |
| OLD | NEW |