| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 compilerArgs = null; | 453 compilerArgs = null; |
| 454 break; | 454 break; |
| 455 default: | 455 default: |
| 456 Expect.fail('unimplemented component $component'); | 456 Expect.fail('unimplemented component $component'); |
| 457 } | 457 } |
| 458 | 458 |
| 459 String executable = getFilename(dumpRenderTreeFilename); | 459 String executable = getFilename(dumpRenderTreeFilename); |
| 460 List<String> args; | 460 List<String> args; |
| 461 if (component == 'webdriver') { | 461 if (component == 'webdriver') { |
| 462 executable = '$dartDir/tools/testing/run_selenium.py'; | 462 executable = '$dartDir/tools/testing/run_selenium.py'; |
| 463 String browserFlag = 'chrome'; | 463 args = ['--out', htmlPath, '--browser', configuration['browser']]; |
| 464 if (configuration['flag'] != null) { | |
| 465 for (var flag in configuration['flag'].split(',')) { | |
| 466 switch (flag) { | |
| 467 case 'ff': | |
| 468 case 'firefox': | |
| 469 browserFlag = 'ff'; | |
| 470 break; | |
| 471 case 'ie': | |
| 472 case 'explorer': | |
| 473 case 'internet-explorer': | |
| 474 browserFlag = 'ie'; | |
| 475 break; | |
| 476 case 'safari': | |
| 477 browserFlag = 'safari'; | |
| 478 break; | |
| 479 } | |
| 480 } | |
| 481 } | |
| 482 args = ['--out', htmlPath, '--browser', browserFlag]; | |
| 483 | |
| 484 } else { | 464 } else { |
| 485 args = ['--no-timeout']; | 465 args = ['--no-timeout']; |
| 486 if (component == 'dartium') { | 466 if (component == 'dartium') { |
| 487 var dartFlags = ['--enable_asserts', | 467 var dartFlags = ['--enable_asserts', |
| 488 '--enable_type_checks', | 468 '--enable_type_checks', |
| 489 '--ignore-unrecognized-flags']; | 469 '--ignore-unrecognized-flags']; |
| 490 dartFlags.addAll(vmOptions); | 470 dartFlags.addAll(vmOptions); |
| 491 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); | 471 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); |
| 492 } | 472 } |
| 493 args.add(htmlPath); | 473 args.add(htmlPath); |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 * $noCrash tests are expected to be flaky but not crash | 1009 * $noCrash tests are expected to be flaky but not crash |
| 1030 * $pass tests are expected to pass | 1010 * $pass tests are expected to pass |
| 1031 * $failOk tests are expected to fail that we won't fix | 1011 * $failOk tests are expected to fail that we won't fix |
| 1032 * $fail tests are expected to fail that we should fix | 1012 * $fail tests are expected to fail that we should fix |
| 1033 * $crash tests are expected to crash that we should fix | 1013 * $crash tests are expected to crash that we should fix |
| 1034 * $timeout tests are allowed to timeout\ | 1014 * $timeout tests are allowed to timeout\ |
| 1035 """; | 1015 """; |
| 1036 print(report); | 1016 print(report); |
| 1037 } | 1017 } |
| 1038 } | 1018 } |
| OLD | NEW |