| 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 library multitest; | 5 library multitest; |
| 6 | 6 |
| 7 import "dart:async"; | 7 import "dart:async"; |
| 8 import "dart:io"; | 8 import "dart:io"; |
| 9 import "test_suite.dart"; | 9 import "test_suite.dart"; |
| 10 import "utils.dart"; | 10 import "utils.dart"; |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 bool hasRuntimeErrors = outcome.contains('runtime error'); | 265 bool hasRuntimeErrors = outcome.contains('runtime error'); |
| 266 bool hasCompileError = outcome.contains('compile-time error'); | 266 bool hasCompileError = outcome.contains('compile-time error'); |
| 267 bool isNegativeIfChecked = outcome.contains('dynamic type error'); | 267 bool isNegativeIfChecked = outcome.contains('dynamic type error'); |
| 268 bool hasCompileErrorIfChecked = outcome.contains('checked mode compile-tim
e error'); | 268 bool hasCompileErrorIfChecked = outcome.contains('checked mode compile-tim
e error'); |
| 269 doTest(multitestFilename, | 269 doTest(multitestFilename, |
| 270 hasCompileError, | 270 hasCompileError, |
| 271 hasRuntimeErrors, | 271 hasRuntimeErrors, |
| 272 isNegativeIfChecked: isNegativeIfChecked, | 272 isNegativeIfChecked: isNegativeIfChecked, |
| 273 hasCompileErrorIfChecked: hasCompileErrorIfChecked, | 273 hasCompileErrorIfChecked: hasCompileErrorIfChecked, |
| 274 hasStaticWarning: hasStaticWarning, | 274 hasStaticWarning: hasStaticWarning, |
| 275 multitestOutcome: outcome, | |
| 276 multitestKey: key, | 275 multitestKey: key, |
| 277 originTestPath: filePath); | 276 originTestPath: filePath); |
| 278 } | 277 } |
| 279 | 278 |
| 280 return null; | 279 return null; |
| 281 }); | 280 }); |
| 282 } | 281 } |
| 283 | 282 |
| 284 | 283 |
| 285 Path CreateMultitestDirectory(String outputDir, Path suiteDir) { | 284 Path CreateMultitestDirectory(String outputDir, Path suiteDir) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 297 // TestSuite.forDirectory. | 296 // TestSuite.forDirectory. |
| 298 split.removeLast(); | 297 split.removeLast(); |
| 299 } | 298 } |
| 300 String path = '${generatedTestDir.path}/${split.last}'; | 299 String path = '${generatedTestDir.path}/${split.last}'; |
| 301 Directory dir = new Directory(path); | 300 Directory dir = new Directory(path); |
| 302 if (!dir.existsSync()) { | 301 if (!dir.existsSync()) { |
| 303 dir.createSync(); | 302 dir.createSync(); |
| 304 } | 303 } |
| 305 return new Path(new File(path).absolute.path); | 304 return new Path(new File(path).absolute.path); |
| 306 } | 305 } |
| OLD | NEW |