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

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

Issue 15563002: Correctly set the timeout of tests when using selenium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tools/testing/dart/test_runner.dart ('k') | 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698