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

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

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Adjusted the status of two tests and the logic of one test, to make them work with --enable-asserts Created 3 years, 7 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
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 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after
2016 } 2016 }
2017 if (compiler == "dart2js" && configuration["csp"]) { 2017 if (compiler == "dart2js" && configuration["csp"]) {
2018 args.add("--csp"); 2018 args.add("--csp");
2019 } 2019 }
2020 if (compiler == "dart2js" && configuration["cps_ir"]) { 2020 if (compiler == "dart2js" && configuration["cps_ir"]) {
2021 args.add("--use-cps-ir"); 2021 args.add("--use-cps-ir");
2022 } 2022 }
2023 if (compiler == "dart2js" && configuration["fast_startup"]) { 2023 if (compiler == "dart2js" && configuration["fast_startup"]) {
2024 args.add("--fast-startup"); 2024 args.add("--fast-startup");
2025 } 2025 }
2026 if (compiler == "dart2js" && configuration["enable_asserts"]) {
2027 args.add("--enable-asserts");
2028 }
2026 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) { 2029 if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) {
2027 args.add("--use-kernel"); 2030 args.add("--use-kernel");
2028 } 2031 }
2029 return args; 2032 return args;
2030 } 2033 }
2031 2034
2032 static bool isBrowserRuntime(String runtime) { 2035 static bool isBrowserRuntime(String runtime) {
2033 const BROWSERS = const [ 2036 const BROWSERS = const [
2034 'drt', 2037 'drt',
2035 'dartium', 2038 'dartium',
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 } 2218 }
2216 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 2219 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
2217 ++shortNameCounter; 2220 ++shortNameCounter;
2218 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 2221 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
2219 path = "short${shortNameCounter}_$pathEnd"; 2222 path = "short${shortNameCounter}_$pathEnd";
2220 } 2223 }
2221 } 2224 }
2222 return path; 2225 return path;
2223 } 2226 }
2224 } 2227 }
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