| 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 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1800 "hasStaticWarning" : false, | 1800 "hasStaticWarning" : false, |
| 1801 "otherScripts": otherScripts, | 1801 "otherScripts": otherScripts, |
| 1802 "isMultitest": isMultitest, | 1802 "isMultitest": isMultitest, |
| 1803 "isMultiHtmlTest": isMultiHtmlTest, | 1803 "isMultiHtmlTest": isMultiHtmlTest, |
| 1804 "subtestNames": subtestNames, | 1804 "subtestNames": subtestNames, |
| 1805 "isolateStubs": isolateStubs, | 1805 "isolateStubs": isolateStubs, |
| 1806 "containsDomImport": containsDomImport }; | 1806 "containsDomImport": containsDomImport }; |
| 1807 } | 1807 } |
| 1808 | 1808 |
| 1809 List<List<String>> getVmOptions(Map optionsFromFile) { | 1809 List<List<String>> getVmOptions(Map optionsFromFile) { |
| 1810 var COMPILERS = const ['none', 'precompiler']; | 1810 var COMPILERS = const ['none', 'precompiler', 'dart2app']; |
| 1811 var RUNTIMES = const ['none', 'dart_precompiled', 'vm', 'drt', 'dartium', | 1811 var RUNTIMES = const ['none', 'dart_precompiled', 'dart_product', 'vm', |
| 1812 'drt', 'dartium', |
| 1812 'ContentShellOnAndroid', 'DartiumOnAndroid']; | 1813 'ContentShellOnAndroid', 'DartiumOnAndroid']; |
| 1813 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && | 1814 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && |
| 1814 RUNTIMES.contains(configuration['runtime']); | 1815 RUNTIMES.contains(configuration['runtime']); |
| 1815 if (!needsVmOptions) return [[]]; | 1816 if (!needsVmOptions) return [[]]; |
| 1816 final vmOptions = optionsFromFile['vmOptions']; | 1817 final vmOptions = optionsFromFile['vmOptions']; |
| 1817 return vmOptions; | 1818 return vmOptions; |
| 1818 } | 1819 } |
| 1819 | 1820 |
| 1820 /** | 1821 /** |
| 1821 * Read options from a co19 test file. | 1822 * Read options from a co19 test file. |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2471 for (var key in PATH_REPLACEMENTS.keys) { | 2472 for (var key in PATH_REPLACEMENTS.keys) { |
| 2472 if (path.startsWith(key)) { | 2473 if (path.startsWith(key)) { |
| 2473 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2474 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
| 2474 break; | 2475 break; |
| 2475 } | 2476 } |
| 2476 } | 2477 } |
| 2477 } | 2478 } |
| 2478 return path; | 2479 return path; |
| 2479 } | 2480 } |
| 2480 } | 2481 } |
| OLD | NEW |