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

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

Issue 43773005: Adds test target for Dartium 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
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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 'ContentShellOnAndroid', 'DartiumOnAndroid'];
1527 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && 1527 var needsVmOptions = COMPILERS.contains(configuration['compiler']) &&
1528 RUNTIMES.contains(configuration['runtime']); 1528 RUNTIMES.contains(configuration['runtime']);
1529 if (!needsVmOptions) return [[]]; 1529 if (!needsVmOptions) return [[]];
1530 final vmOptions = optionsFromFile['vmOptions']; 1530 final vmOptions = optionsFromFile['vmOptions'];
1531 if (configuration['compiler'] != 'dart2dart') return vmOptions; 1531 if (configuration['compiler'] != 'dart2dart') return vmOptions;
1532 // Temporary workaround for race in test suite: tests with different 1532 // Temporary workaround for race in test suite: tests with different
1533 // vm options are still compiled into the same output file which 1533 // vm options are still compiled into the same output file which
1534 // may lead to reads from empty files. 1534 // may lead to reads from empty files.
1535 return [vmOptions[0]]; 1535 return [vmOptions[0]];
1536 } 1536 }
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 static bool usesWebDriver(String runtime) { 1902 static bool usesWebDriver(String runtime) {
1903 const BROWSERS = const [ 1903 const BROWSERS = const [
1904 'dartium', 1904 'dartium',
1905 'ie9', 1905 'ie9',
1906 'ie10', 1906 'ie10',
1907 'safari', 1907 'safari',
1908 'opera', 1908 'opera',
1909 'chrome', 1909 'chrome',
1910 'ff', 1910 'ff',
1911 'chromeOnAndroid', 1911 'chromeOnAndroid',
1912 'ContentShellOnAndroid' 1912 'ContentShellOnAndroid',
1913 'DartiumOnAndroid'
1913 ]; 1914 ];
1914 return BROWSERS.contains(runtime); 1915 return BROWSERS.contains(runtime);
1915 } 1916 }
1916 1917
1917 static bool isBrowserRuntime(String runtime) => 1918 static bool isBrowserRuntime(String runtime) =>
1918 runtime == 'drt' || TestUtils.usesWebDriver(runtime); 1919 runtime == 'drt' || TestUtils.usesWebDriver(runtime);
1919 1920
1920 static bool isJsCommandLineRuntime(String runtime) => 1921 static bool isJsCommandLineRuntime(String runtime) =>
1921 const ['d8', 'jsshell'].contains(runtime); 1922 const ['d8', 'jsshell'].contains(runtime);
1922 1923
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 * $pass tests are expected to pass 2043 * $pass tests are expected to pass
2043 * $failOk tests are expected to fail that we won't fix 2044 * $failOk tests are expected to fail that we won't fix
2044 * $fail tests are expected to fail that we should fix 2045 * $fail tests are expected to fail that we should fix
2045 * $crash tests are expected to crash that we should fix 2046 * $crash tests are expected to crash that we should fix
2046 * $timeout tests are allowed to timeout 2047 * $timeout tests are allowed to timeout
2047 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2048 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2048 """; 2049 """;
2049 print(report); 2050 print(report);
2050 } 2051 }
2051 } 2052 }
OLDNEW
« tools/testing/dart/browser_controller.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698