| 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 /** | 5 /** |
| 6 * Classes and methods for enumerating and preparing tests. | 6 * Classes and methods for enumerating and preparing tests. |
| 7 * | 7 * |
| 8 * This library includes: | 8 * This library includes: |
| 9 * | 9 * |
| 10 * - Creating tests by listing all the Dart files in certain directories, | 10 * - Creating tests by listing all the Dart files in certain directories, |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 "containsLeadingHash": containsLeadingHash, | 1020 "containsLeadingHash": containsLeadingHash, |
| 1021 "isolateStubs": isolateStubs, | 1021 "isolateStubs": isolateStubs, |
| 1022 "containsDomImport": containsDomImport, | 1022 "containsDomImport": containsDomImport, |
| 1023 "isLibraryDefinition": isLibraryDefinition, | 1023 "isLibraryDefinition": isLibraryDefinition, |
| 1024 "containsSourceOrImport": containsSourceOrImport, | 1024 "containsSourceOrImport": containsSourceOrImport, |
| 1025 "numStaticTypeAnnotations": numStaticTypeAnnotations, | 1025 "numStaticTypeAnnotations": numStaticTypeAnnotations, |
| 1026 "numCompileTimeAnnotations": numCompileTimeAnnotations}; | 1026 "numCompileTimeAnnotations": numCompileTimeAnnotations}; |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 List<List<String>> getVmOptions(Map optionsFromFile) { | 1029 List<List<String>> getVmOptions(Map optionsFromFile) { |
| 1030 bool needsVmOptions = | 1030 bool needsVmOptions = Contains(configuration['compiler'], |
| 1031 Contains(configuration['compiler'], const ['none', 'dart2dart', 'dartc']
) && | 1031 const ['none', 'dart2dart', 'dartc']) && |
| 1032 Contains(configuration['runtime'], const ['none', 'vm', 'drt', 'dartium'
]); | 1032 Contains(configuration['runtime'], |
| 1033 const ['none', 'vm', 'drt', 'dartium']); |
| 1033 if (!needsVmOptions) return [[]]; | 1034 if (!needsVmOptions) return [[]]; |
| 1034 return optionsFromFile['vmOptions']; | 1035 return optionsFromFile['vmOptions']; |
| 1035 } | 1036 } |
| 1036 } | 1037 } |
| 1037 | 1038 |
| 1038 | 1039 |
| 1039 class DartcCompilationTestSuite extends StandardTestSuite { | 1040 class DartcCompilationTestSuite extends StandardTestSuite { |
| 1040 List<String> _testDirs; | 1041 List<String> _testDirs; |
| 1041 int activityCount = 0; | 1042 int activityCount = 0; |
| 1042 | 1043 |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1416 * $noCrash tests are expected to be flaky but not crash | 1417 * $noCrash tests are expected to be flaky but not crash |
| 1417 * $pass tests are expected to pass | 1418 * $pass tests are expected to pass |
| 1418 * $failOk tests are expected to fail that we won't fix | 1419 * $failOk tests are expected to fail that we won't fix |
| 1419 * $fail tests are expected to fail that we should fix | 1420 * $fail tests are expected to fail that we should fix |
| 1420 * $crash tests are expected to crash that we should fix | 1421 * $crash tests are expected to crash that we should fix |
| 1421 * $timeout tests are allowed to timeout | 1422 * $timeout tests are allowed to timeout |
| 1422 """; | 1423 """; |
| 1423 print(report); | 1424 print(report); |
| 1424 } | 1425 } |
| 1425 } | 1426 } |
| OLD | NEW |