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

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