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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1330 var htmlPath_subtest = _createUrlPathFromFile(new Path(htmlPath)); | 1330 var htmlPath_subtest = _createUrlPathFromFile(new Path(htmlPath)); |
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 // Disable the GPU under Linux and Dartium a termination signal is sent to |
Bill Hesse
2016/06/13 10:45:21
Long line.
Bill Hesse
2016/06/13 10:45:21
Not grammatical or understandable - please rewrite
| |
1341 // test that are running after a certain period of time. | |
1342 if (configuration['system'] == 'linux' && | |
1343 configuration['runtime'] == 'drt') { | |
1344 contentShellOptions.add('--disable-gpu'); | |
1345 } | |
1341 if (compiler == 'none') { | 1346 if (compiler == 'none') { |
1342 dartFlags.add('--ignore-unrecognized-flags'); | 1347 dartFlags.add('--ignore-unrecognized-flags'); |
1343 if (configuration["checked"]) { | 1348 if (configuration["checked"]) { |
1344 dartFlags.add('--enable_asserts'); | 1349 dartFlags.add('--enable_asserts'); |
1345 dartFlags.add("--enable_type_checks"); | 1350 dartFlags.add("--enable_type_checks"); |
1346 } | 1351 } |
1347 dartFlags.addAll(vmOptions); | 1352 dartFlags.addAll(vmOptions); |
1348 } | 1353 } |
1349 | 1354 |
1350 commandSet.add(CommandBuilder.instance.getContentShellCommand( | 1355 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) { | 2459 for (var key in PATH_REPLACEMENTS.keys) { |
2455 if (path.startsWith(key)) { | 2460 if (path.startsWith(key)) { |
2456 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2461 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
2457 break; | 2462 break; |
2458 } | 2463 } |
2459 } | 2464 } |
2460 } | 2465 } |
2461 return path; | 2466 return path; |
2462 } | 2467 } |
2463 } | 2468 } |
OLD | NEW |