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

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

Issue 1167353003: Opt-in to generate code for compile-time error. Only supported for SSA. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « tests/compiler/dart2js/mock_compiler.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 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2192 } 2192 }
2193 2193
2194 static List<String> standardOptions(Map configuration) { 2194 static List<String> standardOptions(Map configuration) {
2195 List args = ["--ignore-unrecognized-flags"]; 2195 List args = ["--ignore-unrecognized-flags"];
2196 if (configuration["checked"]) { 2196 if (configuration["checked"]) {
2197 args.add('--enable_asserts'); 2197 args.add('--enable_asserts');
2198 args.add("--enable_type_checks"); 2198 args.add("--enable_type_checks");
2199 } 2199 }
2200 String compiler = configuration["compiler"]; 2200 String compiler = configuration["compiler"];
2201 if (compiler == "dart2js") { 2201 if (compiler == "dart2js") {
2202 args = []; 2202 args = ['--generate-code-with-compile-time-errors', '--test-mode'];
2203 if (configuration["checked"]) { 2203 if (configuration["checked"]) {
2204 args.add('--enable-checked-mode'); 2204 args.add('--enable-checked-mode');
2205 } 2205 }
2206 // args.add("--verbose"); 2206 // args.add("--verbose");
2207 if (!isBrowserRuntime(configuration['runtime'])) { 2207 if (!isBrowserRuntime(configuration['runtime'])) {
2208 args.add("--allow-mock-compilation"); 2208 args.add("--allow-mock-compilation");
2209 args.add("--categories=all"); 2209 args.add("--categories=all");
2210 } 2210 }
2211 } 2211 }
2212 if ((compiler == "dart2js") && 2212 if ((compiler == "dart2js") &&
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 for (var key in PATH_REPLACEMENTS.keys) { 2392 for (var key in PATH_REPLACEMENTS.keys) {
2393 if (path.startsWith(key)) { 2393 if (path.startsWith(key)) {
2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2394 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2395 break; 2395 break;
2396 } 2396 }
2397 } 2397 }
2398 } 2398 }
2399 return path; 2399 return path;
2400 } 2400 }
2401 } 2401 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698