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 /// Unit tests for doc. | 5 /// Unit tests for doc. |
6 library dartdocTests; | 6 library dartdocTests; |
7 | 7 |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 // TODO(rnystrom): Use "package:" URL (#4968). | 10 // TODO(rnystrom): Use "package:" URL (#4968). |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 }); | 139 }); |
140 | 140 |
141 }); | 141 }); |
142 } | 142 } |
143 | 143 |
144 Future _runDartdoc(List<String> arguments, {int exitCode: 0}) { | 144 Future _runDartdoc(List<String> arguments, {int exitCode: 0}) { |
145 var dartBin = new Options().executable; | 145 var dartBin = new Options().executable; |
146 var dartdoc = 'bin/dartdoc.dart'; | 146 var dartdoc = 'bin/dartdoc.dart'; |
147 arguments.insertRange(0, 1, dartdoc); | 147 arguments.insertRange(0, 1, dartdoc); |
148 return Process.run(dartBin, arguments) | 148 return Process.run(dartBin, arguments) |
149 .transform((result) { | 149 .then((result) { |
150 expect(result.exitCode, exitCode); | 150 expect(result.exitCode, exitCode); |
151 }); | 151 }); |
152 } | 152 } |
OLD | NEW |