| 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 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 "isMultiHtmlTest": isMultiHtmlTest, | 1514 "isMultiHtmlTest": isMultiHtmlTest, |
| 1515 "subtestNames": subtestNames, | 1515 "subtestNames": subtestNames, |
| 1516 "isolateStubs": isolateStubs, | 1516 "isolateStubs": isolateStubs, |
| 1517 "containsDomImport": containsDomImport, | 1517 "containsDomImport": containsDomImport, |
| 1518 "numStaticTypeAnnotations": numStaticTypeAnnotations, | 1518 "numStaticTypeAnnotations": numStaticTypeAnnotations, |
| 1519 "numCompileTimeAnnotations": numCompileTimeAnnotations }; | 1519 "numCompileTimeAnnotations": numCompileTimeAnnotations }; |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 List<List<String>> getVmOptions(Map optionsFromFile) { | 1522 List<List<String>> getVmOptions(Map optionsFromFile) { |
| 1523 var COMPILERS = const ['none', 'dart2dart']; | 1523 var COMPILERS = const ['none', 'dart2dart']; |
| 1524 var RUNTIMES = const ['none', 'vm', 'drt', 'dartium']; | 1524 var RUNTIMES = const ['none', 'vm', 'drt', 'dartium', |
| 1525 'ContentShellOnAndroid']; |
| 1525 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && | 1526 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && |
| 1526 RUNTIMES.contains(configuration['runtime']); | 1527 RUNTIMES.contains(configuration['runtime']); |
| 1527 if (!needsVmOptions) return [[]]; | 1528 if (!needsVmOptions) return [[]]; |
| 1528 final vmOptions = optionsFromFile['vmOptions']; | 1529 final vmOptions = optionsFromFile['vmOptions']; |
| 1529 if (configuration['compiler'] != 'dart2dart') return vmOptions; | 1530 if (configuration['compiler'] != 'dart2dart') return vmOptions; |
| 1530 // Temporary workaround for race in test suite: tests with different | 1531 // Temporary workaround for race in test suite: tests with different |
| 1531 // vm options are still compiled into the same output file which | 1532 // vm options are still compiled into the same output file which |
| 1532 // may lead to reads from empty files. | 1533 // may lead to reads from empty files. |
| 1533 return [vmOptions[0]]; | 1534 return [vmOptions[0]]; |
| 1534 } | 1535 } |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 static bool usesWebDriver(String runtime) { | 1901 static bool usesWebDriver(String runtime) { |
| 1901 const BROWSERS = const [ | 1902 const BROWSERS = const [ |
| 1902 'dartium', | 1903 'dartium', |
| 1903 'ie9', | 1904 'ie9', |
| 1904 'ie10', | 1905 'ie10', |
| 1905 'safari', | 1906 'safari', |
| 1906 'opera', | 1907 'opera', |
| 1907 'chrome', | 1908 'chrome', |
| 1908 'ff', | 1909 'ff', |
| 1909 'chromeOnAndroid', | 1910 'chromeOnAndroid', |
| 1911 'ContentShellOnAndroid' |
| 1910 ]; | 1912 ]; |
| 1911 return BROWSERS.contains(runtime); | 1913 return BROWSERS.contains(runtime); |
| 1912 } | 1914 } |
| 1913 | 1915 |
| 1914 static bool isBrowserRuntime(String runtime) => | 1916 static bool isBrowserRuntime(String runtime) => |
| 1915 runtime == 'drt' || TestUtils.usesWebDriver(runtime); | 1917 runtime == 'drt' || TestUtils.usesWebDriver(runtime); |
| 1916 | 1918 |
| 1917 static bool isJsCommandLineRuntime(String runtime) => | 1919 static bool isJsCommandLineRuntime(String runtime) => |
| 1918 const ['d8', 'jsshell'].contains(runtime); | 1920 const ['d8', 'jsshell'].contains(runtime); |
| 1919 | 1921 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2039 * $pass tests are expected to pass | 2041 * $pass tests are expected to pass |
| 2040 * $failOk tests are expected to fail that we won't fix | 2042 * $failOk tests are expected to fail that we won't fix |
| 2041 * $fail tests are expected to fail that we should fix | 2043 * $fail tests are expected to fail that we should fix |
| 2042 * $crash tests are expected to crash that we should fix | 2044 * $crash tests are expected to crash that we should fix |
| 2043 * $timeout tests are allowed to timeout | 2045 * $timeout tests are allowed to timeout |
| 2044 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 2046 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 2045 """; | 2047 """; |
| 2046 print(report); | 2048 print(report); |
| 2047 } | 2049 } |
| 2048 } | 2050 } |
| OLD | NEW |