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('NodeTestHelper'); | 5 #library('NodeTestHelper'); |
6 | 6 |
7 #import('unittest_node.dart'); | 7 #import('../../../../lib/unittest/unittest.dart'); |
8 #import('../../../lib/node/node.dart'); | 8 #import('../../../lib/node/node.dart'); |
9 | 9 |
10 /** | 10 /** |
11 * Helper method to be able to run the test from: | 11 * Helper method to be able to run the test from: |
12 * top-level-directory | 12 * top-level-directory |
13 * frog | 13 * frog |
14 * frog/tests/frog/src | 14 * frog/tests/frog/src |
15 */ | 15 */ |
16 | 16 |
17 String getFilename(String pathName) { | 17 String getFilename(String pathName) { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 /** | 159 /** |
160 * List entry is name-of-test, argument-to-child, stdin, expected-error, | 160 * List entry is name-of-test, argument-to-child, stdin, expected-error, |
161 * expected-stdout, expected-stderr | 161 * expected-stdout, expected-stderr |
162 */ | 162 */ |
163 void asyncFuzzyTests(String helperProgram, List<List<String>> tests) { | 163 void asyncFuzzyTests(String helperProgram, List<List<String>> tests) { |
164 for (var test in tests) { | 164 for (var test in tests) { |
165 asyncFuzzyTestWithHelperProgram(test[0], helperProgram, | 165 asyncFuzzyTestWithHelperProgram(test[0], helperProgram, |
166 [test[1]], test[2], test[3], test[4], test[5]); | 166 [test[1]], test[2], test[3], test[4], test[5]); |
167 } | 167 } |
168 } | 168 } |
OLD | NEW |