Chromium Code Reviews| Index: tools/testing/dart/test_suite.dart |
| =================================================================== |
| --- tools/testing/dart/test_suite.dart (revision 13274) |
| +++ tools/testing/dart/test_suite.dart (working copy) |
| @@ -469,6 +469,9 @@ |
| } else if (configuration['runtime'] == 'd8') { |
| var d8 = TestUtils.d8FileName(configuration); |
| commands.add(new Command(d8, ['$tempDir/out.js'])); |
| + } else if (configuration['runtime'] == 'jsshell') { |
| + var jsshell = TestUtils.jsshellFileName(configuration); |
| + commands.add(new Command(jsshell, ['$tempDir/out.js'])); |
| } |
| return commands; |
| @@ -1398,6 +1401,14 @@ |
| return args; |
| } |
| + static String jsshellFileName(Map configuration) { |
| + var executableSuffix = executableSuffix('jsshell'); |
| + var executable = 'jsshell$executableSuffix'; |
| + var root = dartDir(); |
| + var jsshellDir = '$root/tools/testing/bin'; |
|
ahe
2012/10/05 12:46:45
You could also write: ${dartDir()}
ricow1
2012/10/05 12:49:56
Done.
|
| + return '$jsshellDir/$executable'; |
| + } |
| + |
| static bool isBrowserRuntime(String runtime) => Contains( |
| runtime, |
| const <String>['drt', |
| @@ -1407,6 +1418,10 @@ |
| 'opera', |
| 'chrome', |
| 'ff']); |
| + |
| + static bool isJsCommandLineRuntime(String runtime) => |
| + Contains(runtime, const <String>['d8', 'jsshell']); |
| + |
| } |
| class SummaryReport { |