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

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

Issue 1694623002: Fix the test script for dart_product runtime (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « tools/testing/dart/test_runner.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 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 "hasStaticWarning" : false, 1800 "hasStaticWarning" : false,
1801 "otherScripts": otherScripts, 1801 "otherScripts": otherScripts,
1802 "isMultitest": isMultitest, 1802 "isMultitest": isMultitest,
1803 "isMultiHtmlTest": isMultiHtmlTest, 1803 "isMultiHtmlTest": isMultiHtmlTest,
1804 "subtestNames": subtestNames, 1804 "subtestNames": subtestNames,
1805 "isolateStubs": isolateStubs, 1805 "isolateStubs": isolateStubs,
1806 "containsDomImport": containsDomImport }; 1806 "containsDomImport": containsDomImport };
1807 } 1807 }
1808 1808
1809 List<List<String>> getVmOptions(Map optionsFromFile) { 1809 List<List<String>> getVmOptions(Map optionsFromFile) {
1810 var COMPILERS = const ['none', 'precompiler']; 1810 var COMPILERS = const ['none', 'precompiler', 'dart2app'];
1811 var RUNTIMES = const ['none', 'dart_precompiled', 'vm', 'drt', 'dartium', 1811 var RUNTIMES = const ['none', 'dart_precompiled', 'dart_product', 'vm',
1812 'drt', 'dartium',
1812 'ContentShellOnAndroid', 'DartiumOnAndroid']; 1813 'ContentShellOnAndroid', 'DartiumOnAndroid'];
1813 var needsVmOptions = COMPILERS.contains(configuration['compiler']) && 1814 var needsVmOptions = COMPILERS.contains(configuration['compiler']) &&
1814 RUNTIMES.contains(configuration['runtime']); 1815 RUNTIMES.contains(configuration['runtime']);
1815 if (!needsVmOptions) return [[]]; 1816 if (!needsVmOptions) return [[]];
1816 final vmOptions = optionsFromFile['vmOptions']; 1817 final vmOptions = optionsFromFile['vmOptions'];
1817 return vmOptions; 1818 return vmOptions;
1818 } 1819 }
1819 1820
1820 /** 1821 /**
1821 * Read options from a co19 test file. 1822 * Read options from a co19 test file.
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 for (var key in PATH_REPLACEMENTS.keys) { 2472 for (var key in PATH_REPLACEMENTS.keys) {
2472 if (path.startsWith(key)) { 2473 if (path.startsWith(key)) {
2473 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2474 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2474 break; 2475 break;
2475 } 2476 }
2476 } 2477 }
2477 } 2478 }
2478 return path; 2479 return path;
2479 } 2480 }
2480 } 2481 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698