OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override --checked | 4 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override |
5 | 5 |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 | 7 |
8 import 'package:observatory/cli.dart'; | 8 import 'package:observatory/cli.dart'; |
9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 | 10 |
11 class TestCommand extends Command { | 11 class TestCommand extends Command { |
12 TestCommand(this.out, name, children) : super(name, children); | 12 TestCommand(this.out, name, children) : super(name, children); |
13 StringBuffer out; | 13 StringBuffer out; |
14 | 14 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 main() { | 220 main() { |
221 test('command completion test suite', testCommandComplete); | 221 test('command completion test suite', testCommandComplete); |
222 test('run a simple command', testCommandRunSimple); | 222 test('run a simple command', testCommandRunSimple); |
223 test('run a subcommand', testCommandRunSubcommand); | 223 test('run a subcommand', testCommandRunSubcommand); |
224 test('run a command which is not found', testCommandRunNotFound); | 224 test('run a command which is not found', testCommandRunNotFound); |
225 test('run a command which is ambiguous', testCommandRunAmbiguous); | 225 test('run a command which is ambiguous', testCommandRunAmbiguous); |
226 test('run a command using an alias', testCommandRunAlias); | 226 test('run a command using an alias', testCommandRunAlias); |
227 } | 227 } |
228 | 228 |
OLD | NEW |