OLD | NEW |
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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 var fullHtmlPath = | 1331 var fullHtmlPath = |
1332 _getUriForBrowserTest(htmlPath_subtest, subtestName).toString(); | 1332 _getUriForBrowserTest(htmlPath_subtest, subtestName).toString(); |
1333 | 1333 |
1334 if (runtime == "drt") { | 1334 if (runtime == "drt") { |
1335 var dartFlags = []; | 1335 var dartFlags = []; |
1336 var contentShellOptions = []; | 1336 var contentShellOptions = []; |
1337 | 1337 |
1338 contentShellOptions.add('--no-timeout'); | 1338 contentShellOptions.add('--no-timeout'); |
1339 contentShellOptions.add('--dump-render-tree'); | 1339 contentShellOptions.add('--dump-render-tree'); |
1340 | 1340 |
| 1341 // Disable the GPU under Linux and Dartium. If the GPU is enabled, |
| 1342 // Chrome may send a termination signal to a test. The test will be |
| 1343 // terminated if a machine (bot) doesn't have a GPU or if a test is |
| 1344 // still running after a certain period of time. |
| 1345 if (configuration['system'] == 'linux' && |
| 1346 configuration['runtime'] == 'drt') { |
| 1347 contentShellOptions.add('--disable-gpu'); |
| 1348 } |
1341 if (compiler == 'none') { | 1349 if (compiler == 'none') { |
1342 dartFlags.add('--ignore-unrecognized-flags'); | 1350 dartFlags.add('--ignore-unrecognized-flags'); |
1343 if (configuration["checked"]) { | 1351 if (configuration["checked"]) { |
1344 dartFlags.add('--enable_asserts'); | 1352 dartFlags.add('--enable_asserts'); |
1345 dartFlags.add("--enable_type_checks"); | 1353 dartFlags.add("--enable_type_checks"); |
1346 } | 1354 } |
1347 dartFlags.addAll(vmOptions); | 1355 dartFlags.addAll(vmOptions); |
1348 } | 1356 } |
1349 | 1357 |
1350 commandSet.add(CommandBuilder.instance.getContentShellCommand( | 1358 commandSet.add(CommandBuilder.instance.getContentShellCommand( |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2454 for (var key in PATH_REPLACEMENTS.keys) { | 2462 for (var key in PATH_REPLACEMENTS.keys) { |
2455 if (path.startsWith(key)) { | 2463 if (path.startsWith(key)) { |
2456 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2464 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
2457 break; | 2465 break; |
2458 } | 2466 } |
2459 } | 2467 } |
2460 } | 2468 } |
2461 return path; | 2469 return path; |
2462 } | 2470 } |
2463 } | 2471 } |
OLD | NEW |