Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 29773006: Changes to run tests on Dartium content shell on Android. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 "isMultiHtmlTest": isMultiHtmlTest, 1515 "isMultiHtmlTest": isMultiHtmlTest,
1516 "subtestNames": subtestNames, 1516 "subtestNames": subtestNames,
1517 "isolateStubs": isolateStubs, 1517 "isolateStubs": isolateStubs,
1518 "containsDomImport": containsDomImport, 1518 "containsDomImport": containsDomImport,
1519 "numStaticTypeAnnotations": numStaticTypeAnnotations, 1519 "numStaticTypeAnnotations": numStaticTypeAnnotations,
1520 "numCompileTimeAnnotations": numCompileTimeAnnotations }; 1520 "numCompileTimeAnnotations": numCompileTimeAnnotations };
1521 } 1521 }
1522 1522
1523 List<List<String>> getVmOptions(Map optionsFromFile) { 1523 List<List<String>> getVmOptions(Map optionsFromFile) {
1524 var COMPILERS = const ['none', 'dart2dart']; 1524 var COMPILERS = const ['none', 'dart2dart'];
1525 var RUNTIMES = const ['none', 'vm', 'drt', 'dartium']; 1525 var RUNTIMES = const ['none', 'vm', 'drt', 'dartium',
1526 'ContentShellOnAndroid'];
1526 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && 1527 var needsVmOptions = COMPILERS.contains(configuration['compiler']) &&
1527 RUNTIMES.contains(configuration['runtime']); 1528 RUNTIMES.contains(configuration['runtime']);
1528 if (!needsVmOptions) return [[]]; 1529 if (!needsVmOptions) return [[]];
1529 final vmOptions = optionsFromFile['vmOptions']; 1530 final vmOptions = optionsFromFile['vmOptions'];
1530 if (configuration['compiler'] != 'dart2dart') return vmOptions; 1531 if (configuration['compiler'] != 'dart2dart') return vmOptions;
1531 // Temporary workaround for race in test suite: tests with different 1532 // Temporary workaround for race in test suite: tests with different
1532 // vm options are still compiled into the same output file which 1533 // vm options are still compiled into the same output file which
1533 // may lead to reads from empty files. 1534 // may lead to reads from empty files.
1534 return [vmOptions[0]]; 1535 return [vmOptions[0]];
1535 } 1536 }
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 static bool usesWebDriver(String runtime) { 1902 static bool usesWebDriver(String runtime) {
1902 const BROWSERS = const [ 1903 const BROWSERS = const [
1903 'dartium', 1904 'dartium',
1904 'ie9', 1905 'ie9',
1905 'ie10', 1906 'ie10',
1906 'safari', 1907 'safari',
1907 'opera', 1908 'opera',
1908 'chrome', 1909 'chrome',
1909 'ff', 1910 'ff',
1910 'chromeOnAndroid', 1911 'chromeOnAndroid',
1912 'ContentShellOnAndroid'
1911 ]; 1913 ];
1912 return BROWSERS.contains(runtime); 1914 return BROWSERS.contains(runtime);
1913 } 1915 }
1914 1916
1915 static bool isBrowserRuntime(String runtime) => 1917 static bool isBrowserRuntime(String runtime) =>
1916 runtime == 'drt' || TestUtils.usesWebDriver(runtime); 1918 runtime == 'drt' || TestUtils.usesWebDriver(runtime);
1917 1919
1918 static bool isJsCommandLineRuntime(String runtime) => 1920 static bool isJsCommandLineRuntime(String runtime) =>
1919 const ['d8', 'jsshell'].contains(runtime); 1921 const ['d8', 'jsshell'].contains(runtime);
1920 1922
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 * $pass tests are expected to pass 2042 * $pass tests are expected to pass
2041 * $failOk tests are expected to fail that we won't fix 2043 * $failOk tests are expected to fail that we won't fix
2042 * $fail tests are expected to fail that we should fix 2044 * $fail tests are expected to fail that we should fix
2043 * $crash tests are expected to crash that we should fix 2045 * $crash tests are expected to crash that we should fix
2044 * $timeout tests are allowed to timeout 2046 * $timeout tests are allowed to timeout
2045 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2047 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2046 """; 2048 """;
2047 print(report); 2049 print(report);
2048 } 2050 }
2049 } 2051 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698