| 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 | 991 |
| 992 var htmlPath_subtest = _createUrlPathFromFile(new Path(htmlPath)); | 992 var htmlPath_subtest = _createUrlPathFromFile(new Path(htmlPath)); |
| 993 var fullHtmlPath = _getUriForBrowserTest(info, htmlPath_subtest, | 993 var fullHtmlPath = _getUriForBrowserTest(info, htmlPath_subtest, |
| 994 subtestNames, subtestIndex); | 994 subtestNames, subtestIndex); |
| 995 | 995 |
| 996 List<String> args = <String>[]; | 996 List<String> args = <String>[]; |
| 997 if (TestUtils.usesWebDriver(runtime)) { | 997 if (TestUtils.usesWebDriver(runtime)) { |
| 998 args = [ | 998 args = [ |
| 999 dartDir.append('tools/testing/run_selenium.py').toNativePath(), | 999 dartDir.append('tools/testing/run_selenium.py').toNativePath(), |
| 1000 '--browser=$runtime', | 1000 '--browser=$runtime', |
| 1001 '--timeout=${configuration["timeout"]~/2}', | 1001 // NOTE: This value will be overridden by the test runner |
| 1002 '--timeout=${configuration['timeout']}', |
| 1002 '--out=$fullHtmlPath']; | 1003 '--out=$fullHtmlPath']; |
| 1003 if (runtime == 'dartium') { | 1004 if (runtime == 'dartium') { |
| 1004 args.add('--executable=$dartiumFilename'); | 1005 args.add('--executable=$dartiumFilename'); |
| 1005 } | 1006 } |
| 1006 if (subtestIndex != 0) { | 1007 if (subtestIndex != 0) { |
| 1007 args.add('--force-refresh'); | 1008 args.add('--force-refresh'); |
| 1008 } | 1009 } |
| 1009 commandSet.add(new Command('python', args)); | 1010 commandSet.add(new Command('python', args)); |
| 1010 } else { | 1011 } else { |
| 1011 if (runtime != "drt") { | 1012 if (runtime != "drt") { |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 * $pass tests are expected to pass | 1925 * $pass tests are expected to pass |
| 1925 * $failOk tests are expected to fail that we won't fix | 1926 * $failOk tests are expected to fail that we won't fix |
| 1926 * $fail tests are expected to fail that we should fix | 1927 * $fail tests are expected to fail that we should fix |
| 1927 * $crash tests are expected to crash that we should fix | 1928 * $crash tests are expected to crash that we should fix |
| 1928 * $timeout tests are allowed to timeout | 1929 * $timeout tests are allowed to timeout |
| 1929 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1930 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1930 """; | 1931 """; |
| 1931 print(report); | 1932 print(report); |
| 1932 } | 1933 } |
| 1933 } | 1934 } |
| OLD | NEW |