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

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

Issue 2875773003: Roll 50: Updated for push to origin/master. (Closed)
Patch Set: Roll 50: Updated to latest 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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 var dartFlags = <String>[]; 1201 var dartFlags = <String>[];
1202 var contentShellOptions = ['--no-timeout', '--run-layout-test']; 1202 var contentShellOptions = ['--no-timeout', '--run-layout-test'];
1203 1203
1204 // Disable the GPU under Linux and Dartium. If the GPU is enabled, 1204 // Disable the GPU under Linux and Dartium. If the GPU is enabled,
1205 // Chrome may send a termination signal to a test. The test will be 1205 // Chrome may send a termination signal to a test. The test will be
1206 // terminated if a machine (bot) doesn't have a GPU or if a test is 1206 // terminated if a machine (bot) doesn't have a GPU or if a test is
1207 // still running after a certain period of time. 1207 // still running after a certain period of time.
1208 if (configuration['system'] == 'linux' && 1208 if (configuration['system'] == 'linux' &&
1209 configuration['runtime'] == 'drt') { 1209 configuration['runtime'] == 'drt') {
1210 contentShellOptions.add('--disable-gpu'); 1210 contentShellOptions.add('--disable-gpu');
1211 // TODO(terry): Roll 50 need this in conjection with disable-gpu.
1212 contentShellOptions.add('--disable-gpu-early-init');
1211 } 1213 }
1212 if (compiler == 'none') { 1214 if (compiler == 'none') {
1213 dartFlags.add('--ignore-unrecognized-flags'); 1215 dartFlags.add('--ignore-unrecognized-flags');
1214 if (configuration["checked"]) { 1216 if (configuration["checked"]) {
1215 dartFlags.add('--enable_asserts'); 1217 dartFlags.add('--enable_asserts');
1216 dartFlags.add("--enable_type_checks"); 1218 dartFlags.add("--enable_type_checks");
1217 } 1219 }
1218 dartFlags.addAll(vmOptions); 1220 dartFlags.addAll(vmOptions);
1219 } 1221 }
1220 1222
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 } 2229 }
2228 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 2230 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
2229 ++shortNameCounter; 2231 ++shortNameCounter;
2230 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 2232 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
2231 path = "short${shortNameCounter}_$pathEnd"; 2233 path = "short${shortNameCounter}_$pathEnd";
2232 } 2234 }
2233 } 2235 }
2234 return path; 2236 return path;
2235 } 2237 }
2236 } 2238 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698