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

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

Issue 10216007: Let dart2js tests run on browsers locally. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 if (configuration["checked"]) { 1315 if (configuration["checked"]) {
1316 args.add('--enable_asserts'); 1316 args.add('--enable_asserts');
1317 args.add("--enable_type_checks"); 1317 args.add("--enable_type_checks");
1318 } 1318 }
1319 if (configuration["compiler"] == "dart2js") { 1319 if (configuration["compiler"] == "dart2js") {
1320 args.add("--verbose"); 1320 args.add("--verbose");
1321 args.add("--leg"); 1321 args.add("--leg");
1322 if (configuration["host_checked"]) { 1322 if (configuration["host_checked"]) {
1323 args.add("--vm_flags=--enable_asserts --enable_type_checks"); 1323 args.add("--vm_flags=--enable_asserts --enable_type_checks");
1324 } 1324 }
1325 if (configuration['runtime'] != 'drt') { 1325 if (!isBrowserRuntime(configuration['runtime'])) {
1326 args.add("--allow-mock-compilation"); 1326 args.add("--allow-mock-compilation");
1327 } 1327 }
1328 } 1328 }
1329 return args; 1329 return args;
1330 } 1330 }
1331 1331
1332 static bool isBrowserRuntime(String runtime) => 1332 static bool isBrowserRuntime(String runtime) =>
1333 const <String>['drt', 1333 const <String>['drt',
1334 'dartium', 1334 'dartium',
1335 'ie', 1335 'ie',
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 * $noCrash tests are expected to be flaky but not crash 1383 * $noCrash tests are expected to be flaky but not crash
1384 * $pass tests are expected to pass 1384 * $pass tests are expected to pass
1385 * $failOk tests are expected to fail that we won't fix 1385 * $failOk tests are expected to fail that we won't fix
1386 * $fail tests are expected to fail that we should fix 1386 * $fail tests are expected to fail that we should fix
1387 * $crash tests are expected to crash that we should fix 1387 * $crash tests are expected to crash that we should fix
1388 * $timeout tests are allowed to timeout 1388 * $timeout tests are allowed to timeout
1389 """; 1389 """;
1390 print(report); 1390 print(report);
1391 } 1391 }
1392 } 1392 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698