| OLD | NEW |
| 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 library testrunner_test; | 5 library testrunner_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 }); | 97 }); |
| 98 return rtn; | 98 return rtn; |
| 99 } | 99 } |
| 100 | 100 |
| 101 // A useful function to quickly disable a group of tests; just | 101 // A useful function to quickly disable a group of tests; just |
| 102 // replace group() with skip_group(). | 102 // replace group() with skip_group(). |
| 103 skip_group(_1,_2) {} | 103 skip_group(_1,_2) {} |
| 104 | 104 |
| 105 main() { | 105 main() { |
| 106 var opt = new Options(); | 106 dart = Platform.executable; |
| 107 dart = opt.executable; | |
| 108 var idx = dart.indexOf('dart-sdk'); | 107 var idx = dart.indexOf('dart-sdk'); |
| 109 if (idx < 0) { | 108 if (idx < 0) { |
| 110 print("Please run using the dart executable from the Dart SDK"); | 109 print("Please run using the dart executable from the Dart SDK"); |
| 111 exit(-1); | 110 exit(-1); |
| 112 } | 111 } |
| 113 var _ = Platform.pathSeparator; | 112 var _ = Platform.pathSeparator; |
| 114 var testrunner = '../../testrunner/testrunner.dart' | 113 var testrunner = '../../testrunner/testrunner.dart' |
| 115 .replaceAll('/', Platform.pathSeparator); | 114 .replaceAll('/', Platform.pathSeparator); |
| 116 | 115 |
| 117 group("list tests", () { | 116 group("list tests", () { |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 '--server', | 512 '--server', |
| 514 '--port=3456', | 513 '--port=3456', |
| 515 '--root=${Directory.current.path}', | 514 '--root=${Directory.current.path}', |
| 516 'http_client_tests' ], | 515 'http_client_tests' ], |
| 517 [ '?PASS .*/http_client_tests/http_client_test.dart test1', | 516 [ '?PASS .*/http_client_tests/http_client_test.dart test1', |
| 518 '?PASS .*/http_client_tests/http_client_test.dart test2' ]); | 517 '?PASS .*/http_client_tests/http_client_test.dart test2' ]); |
| 519 }); | 518 }); |
| 520 }); | 519 }); |
| 521 } | 520 } |
| 522 | 521 |
| OLD | NEW |