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 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1824 "otherScripts": const [], | 1824 "otherScripts": const [], |
1825 "isMultitest": false, | 1825 "isMultitest": false, |
1826 "isMultiHtmlTest": false, | 1826 "isMultiHtmlTest": false, |
1827 "subtestNames": const [], | 1827 "subtestNames": const [], |
1828 "isolateStubs": '', | 1828 "isolateStubs": '', |
1829 "containsDomImport": false, | 1829 "containsDomImport": false, |
1830 }; | 1830 }; |
1831 } | 1831 } |
1832 | 1832 |
1833 List<List<String>> getVmOptions(Map optionsFromFile) { | 1833 List<List<String>> getVmOptions(Map optionsFromFile) { |
1834 var COMPILERS = const ['none', 'precompiler', 'dart2app', 'dart2appjit']; | 1834 var COMPILERS = const ['none', 'precompiler', 'app_jit']; |
1835 var RUNTIMES = const [ | 1835 var RUNTIMES = const [ |
1836 'none', | 1836 'none', |
1837 'dart_precompiled', | 1837 'dart_precompiled', |
1838 'dart_app', | |
1839 'vm', | 1838 'vm', |
1840 'drt', | 1839 'drt', |
1841 'dartium', | 1840 'dartium', |
1842 'ContentShellOnAndroid', | 1841 'ContentShellOnAndroid', |
1843 'DartiumOnAndroid' | 1842 'DartiumOnAndroid' |
1844 ]; | 1843 ]; |
1845 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && | 1844 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && |
1846 RUNTIMES.contains(configuration['runtime']); | 1845 RUNTIMES.contains(configuration['runtime']); |
1847 if (!needsVmOptions) return [[]]; | 1846 if (!needsVmOptions) return [[]]; |
1848 final vmOptions = optionsFromFile['vmOptions']; | 1847 final vmOptions = optionsFromFile['vmOptions']; |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 } | 2532 } |
2534 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2533 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
2535 ++shortNameCounter; | 2534 ++shortNameCounter; |
2536 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2535 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
2537 path = "short${shortNameCounter}_$pathEnd"; | 2536 path = "short${shortNameCounter}_$pathEnd"; |
2538 } | 2537 } |
2539 } | 2538 } |
2540 return path; | 2539 return path; |
2541 } | 2540 } |
2542 } | 2541 } |
OLD | NEW |