| 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 // don't need to do any compilations. Thus we set "commandSet = []". | 1003 // don't need to do any compilations. Thus we set "commandSet = []". |
| 1004 commandSet = []; | 1004 commandSet = []; |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 var htmlPath_subtest = _createUrlPathFromFile(new Path(htmlPath)); | 1007 var htmlPath_subtest = _createUrlPathFromFile(new Path(htmlPath)); |
| 1008 var fullHtmlPath = _getUriForBrowserTest(info, htmlPath_subtest, | 1008 var fullHtmlPath = _getUriForBrowserTest(info, htmlPath_subtest, |
| 1009 subtestNames, subtestIndex); | 1009 subtestNames, subtestIndex); |
| 1010 | 1010 |
| 1011 List<String> args = <String>[]; | 1011 List<String> args = <String>[]; |
| 1012 | 1012 |
| 1013 if (TestUtils.usesWebDriver(runtime)) { | 1013 if (configuration['use_browser_controller']) { |
| 1014 // This command is not actually run, it is used for reproducing |
| 1015 // the failure. |
| 1016 args = ['tools/testing/dart/launch_browser.dart', |
| 1017 runtime, |
| 1018 fullHtmlPath]; |
| 1019 commandSet.add(new Command(TestUtils.dartTestExecutable.toString(), |
| 1020 args)); |
| 1021 } else if (TestUtils.usesWebDriver(runtime)) { |
| 1014 args = [ | 1022 args = [ |
| 1015 dartDir.append('tools/testing/run_selenium.py').toNativePath(), | 1023 dartDir.append('tools/testing/run_selenium.py').toNativePath(), |
| 1016 '--browser=$runtime', | 1024 '--browser=$runtime', |
| 1017 // NOTE: This value will be overridden by the test runner | 1025 // NOTE: This value will be overridden by the test runner |
| 1018 '--timeout=${configuration['timeout']}', | 1026 '--timeout=${configuration['timeout']}', |
| 1019 '--out=$fullHtmlPath']; | 1027 '--out=$fullHtmlPath']; |
| 1020 if (runtime == 'dartium') { | 1028 if (runtime == 'dartium') { |
| 1021 args.add('--executable=$dartiumFilename'); | 1029 args.add('--executable=$dartiumFilename'); |
| 1022 } | 1030 } |
| 1023 if (subtestIndex != 0) { | 1031 if (subtestIndex != 0) { |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 * $pass tests are expected to pass | 1954 * $pass tests are expected to pass |
| 1947 * $failOk tests are expected to fail that we won't fix | 1955 * $failOk tests are expected to fail that we won't fix |
| 1948 * $fail tests are expected to fail that we should fix | 1956 * $fail tests are expected to fail that we should fix |
| 1949 * $crash tests are expected to crash that we should fix | 1957 * $crash tests are expected to crash that we should fix |
| 1950 * $timeout tests are allowed to timeout | 1958 * $timeout tests are allowed to timeout |
| 1951 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1959 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1952 """; | 1960 """; |
| 1953 print(report); | 1961 print(report); |
| 1954 } | 1962 } |
| 1955 } | 1963 } |
| OLD | NEW |