| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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("test_options_parser"); | 5 #library("test_options_parser"); |
| 6 | 6 |
| 7 #import("dart:io"); | 7 #import("dart:io"); |
| 8 #import("dart:builtin"); | 8 #import("dart:builtin"); |
| 9 #import("drt_updater.dart"); | 9 #import("drt_updater.dart"); |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 new _TestOptionSpecification( | 88 new _TestOptionSpecification( |
| 89 'runtime', | 89 'runtime', |
| 90 '''Where the tests should be run. | 90 '''Where the tests should be run. |
| 91 vm: Run Dart code on the standalone dart vm. | 91 vm: Run Dart code on the standalone dart vm. |
| 92 | 92 |
| 93 d8: Run JavaScript from the command line using v8. | 93 d8: Run JavaScript from the command line using v8. |
| 94 | 94 |
| 95 drt: Run Dart or JavaScript in the headless version of Chrome, | 95 drt: Run Dart or JavaScript in the headless version of Chrome, |
| 96 DumpRenderTree. | 96 DumpRenderTree. |
| 97 | 97 |
| 98 ff or firefox: Run JavaScript in Firefox. | 98 [ff | chrome | safari | ie | opera]: Run JavaScript in the specified |
| 99 | 99 browser. |
| 100 chrome: Run JavaScript in Chrome. | |
| 101 | |
| 102 safari: Run JavaScript in Safari. | |
| 103 | |
| 104 ie: Run JavaScript in Internet Explorer. | |
| 105 | |
| 106 opera: Run JavaScript in Opera. | |
| 107 | 100 |
| 108 none: No runtime, compile only (for example, used for dartc static analysis | 101 none: No runtime, compile only (for example, used for dartc static analysis |
| 109 tests).''', | 102 tests).''', |
| 110 ['-r', '--runtime'], | 103 ['-r', '--runtime'], |
| 111 ['vm', 'd8', 'drt', 'ff', 'firefox', 'chrome', | 104 ['vm', 'd8', 'drt', 'ff', 'firefox', 'chrome', |
| 112 'safari', 'ie', 'opera', 'none'], | 105 'safari', 'ie', 'opera', 'none'], |
| 113 'vm'), | 106 'vm'), |
| 114 new _TestOptionSpecification( | 107 new _TestOptionSpecification( |
| 115 'arch', | 108 'arch', |
| 116 'The architecture to run tests for', | 109 'The architecture to run tests for', |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 return option; | 607 return option; |
| 615 } | 608 } |
| 616 } | 609 } |
| 617 print('Unknown test option $name'); | 610 print('Unknown test option $name'); |
| 618 exit(1); | 611 exit(1); |
| 619 } | 612 } |
| 620 | 613 |
| 621 | 614 |
| 622 List<_TestOptionSpecification> _options; | 615 List<_TestOptionSpecification> _options; |
| 623 } | 616 } |
| OLD | NEW |