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 2691393004: Remove two flags from dartanalyzer running in test.dart (Closed)
Patch Set: Created 3 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 | « no previous file | 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 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2225 } 2225 }
2226 if (compiler == "dart2js" && configuration["cps_ir"]) { 2226 if (compiler == "dart2js" && configuration["cps_ir"]) {
2227 args.add("--use-cps-ir"); 2227 args.add("--use-cps-ir");
2228 } 2228 }
2229 if (compiler == "dart2js" && configuration["fast_startup"]) { 2229 if (compiler == "dart2js" && configuration["fast_startup"]) {
2230 args.add("--fast-startup"); 2230 args.add("--fast-startup");
2231 } 2231 }
2232 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) { 2232 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) {
2233 args.add("--use-kernel"); 2233 args.add("--use-kernel");
2234 } 2234 }
2235 if (compiler == "dart2analyzer") {
2236 args.add("--show-package-warnings");
2237 args.add("--enable-async");
2238 }
2239 return args; 2235 return args;
2240 } 2236 }
2241 2237
2242 static bool isBrowserRuntime(String runtime) { 2238 static bool isBrowserRuntime(String runtime) {
2243 const BROWSERS = const [ 2239 const BROWSERS = const [
2244 'drt', 2240 'drt',
2245 'dartium', 2241 'dartium',
2246 'ie9', 2242 'ie9',
2247 'ie10', 2243 'ie10',
2248 'ie11', 2244 'ie11',
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2425 } 2421 }
2426 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 2422 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
2427 ++shortNameCounter; 2423 ++shortNameCounter;
2428 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 2424 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
2429 path = "short${shortNameCounter}_$pathEnd"; 2425 path = "short${shortNameCounter}_$pathEnd";
2430 } 2426 }
2431 } 2427 }
2432 return path; 2428 return path;
2433 } 2429 }
2434 } 2430 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698