OLD | NEW |
---|---|
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #library("test_suite"); | 5 #library("test_suite"); |
6 | 6 |
7 #import("status_file_parser.dart"); | 7 #import("status_file_parser.dart"); |
8 #import("test_runner.dart"); | 8 #import("test_runner.dart"); |
9 #import("multitest.dart"); | 9 #import("multitest.dart"); |
10 | 10 |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
456 compilerArgs = null; | 456 compilerArgs = null; |
457 break; | 457 break; |
458 default: | 458 default: |
459 Expect.fail('unimplemented component $component'); | 459 Expect.fail('unimplemented component $component'); |
460 } | 460 } |
461 | 461 |
462 String executable = getFilename(dumpRenderTreeFilename); | 462 String executable = getFilename(dumpRenderTreeFilename); |
463 List<String> args; | 463 List<String> args; |
464 if (component == 'webdriver') { | 464 if (component == 'webdriver') { |
465 executable = '$dartDir/tools/testing/run_selenium.py'; | 465 executable = '$dartDir/tools/testing/run_selenium.py'; |
466 String browserFlag = 'chrome'; | 466 args = ['--out', htmlPath, '--browser', configuration['browser']]; |
Emily Fortuna
2012/01/11 18:59:45
What if the browser flag isn't specified? Previous
Siggi Cherem (dart-lang)
2012/01/11 19:55:22
Turns out I made the 'browser' flag in test_option
Emily Fortuna
2012/01/11 20:29:06
Gotcha! I forgot about that. Carry on.
On 2012/01
| |
467 if (configuration['flag'] != null) { | |
468 for (var flag in configuration['flag'].split(',')) { | |
469 switch (flag) { | |
470 case 'ff': | |
471 case 'firefox': | |
472 browserFlag = 'ff'; | |
473 break; | |
474 case 'ie': | |
475 case 'explorer': | |
476 case 'internet-explorer': | |
477 browserFlag = 'ie'; | |
478 break; | |
479 case 'safari': | |
480 browserFlag = 'safari'; | |
481 break; | |
482 } | |
483 } | |
484 } | |
485 args = ['--out', htmlPath, '--browser', browserFlag]; | |
486 | |
487 } else { | 467 } else { |
488 args = ['--no-timeout']; | 468 args = ['--no-timeout']; |
489 if (component == 'dartium') { | 469 if (component == 'dartium') { |
490 var dartFlags = ['--enable_asserts', | 470 var dartFlags = ['--enable_asserts', |
491 '--enable_type_checks', | 471 '--enable_type_checks', |
492 '--ignore-unrecognized-flags']; | 472 '--ignore-unrecognized-flags']; |
493 dartFlags.addAll(vmOptions); | 473 dartFlags.addAll(vmOptions); |
494 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); | 474 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); |
495 } | 475 } |
496 args.add(htmlPath); | 476 args.add(htmlPath); |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1032 * $noCrash tests are expected to be flaky but not crash | 1012 * $noCrash tests are expected to be flaky but not crash |
1033 * $pass tests are expected to pass | 1013 * $pass tests are expected to pass |
1034 * $failOk tests are expected to fail that we won't fix | 1014 * $failOk tests are expected to fail that we won't fix |
1035 * $fail tests are expected to fail that we should fix | 1015 * $fail tests are expected to fail that we should fix |
1036 * $crash tests are expected to crash that we should fix | 1016 * $crash tests are expected to crash that we should fix |
1037 * $timeout tests are allowed to timeout\ | 1017 * $timeout tests are allowed to timeout\ |
1038 """; | 1018 """; |
1039 print(report); | 1019 print(report); |
1040 } | 1020 } |
1041 } | 1021 } |
OLD | NEW |