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

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

Issue 11362147: Move html_individual_config to correct location after tree rearranging. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « pkg/unittest/lib/html_individual_config.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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 fromPath.toNativePath(), '$tempDir/$baseName.js', 720 fromPath.toNativePath(), '$tempDir/$baseName.js',
721 compiler, tempDir, vmOptions)); 721 compiler, tempDir, vmOptions));
722 } 722 }
723 } 723 }
724 724
725 // Variables for browser multi-tests. 725 // Variables for browser multi-tests.
726 List<String> subtestNames = info.optionsFromFile['subtestNames']; 726 List<String> subtestNames = info.optionsFromFile['subtestNames'];
727 TestCase multitestParentTest; 727 TestCase multitestParentTest;
728 int subtestIndex = 0; 728 int subtestIndex = 0;
729 // Construct the command that executes the browser test 729 // Construct the command that executes the browser test
730 constructBrowserTestCommands();
731 do { 730 do {
732 List<String> args = <String>[]; 731 List<String> args = <String>[];
733 String fullHtmlPath = htmlPath; 732 String fullHtmlPath = htmlPath;
734 if (info.optionsFromFile['isMultiHtmlTest'] 733 if (info.optionsFromFile['isMultiHtmlTest']
735 && subtestNames.length > 0) { 734 && subtestNames.length > 0) {
736 fullHtmlPath = '${htmlPath}#${subtestNames[subtestIndex]}'; 735 fullHtmlPath = '${htmlPath}#${subtestNames[subtestIndex]}';
737 } 736 }
738 if (TestUtils.usesWebDriver(runtime)) { 737 if (TestUtils.usesWebDriver(runtime)) {
739 args = [ 738 args = [
740 dartDir.append('tools/testing/run_selenium.py').toNativePath(), 739 dartDir.append('tools/testing/run_selenium.py').toNativePath(),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 multitestParentTest = testCase; 790 multitestParentTest = testCase;
792 } else { 791 } else {
793 multitestParentTest.addObserver(testCase); 792 multitestParentTest.addObserver(testCase);
794 } 793 }
795 doTest(testCase); 794 doTest(testCase);
796 subtestIndex++; 795 subtestIndex++;
797 } while(subtestIndex < subtestNames.length); 796 } while(subtestIndex < subtestNames.length);
798 } 797 }
799 } 798 }
800 799
801 void constructBrowserTestCommands() {
802
803 }
804
805 /** Helper to create a compilation command for a single input file. */ 800 /** Helper to create a compilation command for a single input file. */
806 Command _compileCommand(String inputFile, String outputFile, 801 Command _compileCommand(String inputFile, String outputFile,
807 String compiler, String dir, var vmOptions) { 802 String compiler, String dir, var vmOptions) {
808 String executable = TestUtils.compilerPath(configuration); 803 String executable = TestUtils.compilerPath(configuration);
809 List<String> args = TestUtils.standardOptions(configuration); 804 List<String> args = TestUtils.standardOptions(configuration);
810 switch (compiler) { 805 switch (compiler) {
811 case 'dart2js': 806 case 'dart2js':
812 case 'dart2dart': 807 case 'dart2dart':
813 if (compiler == 'dart2dart') args.add('--out=$outputFile'); 808 if (compiler == 'dart2dart') args.add('--out=$outputFile');
814 args.add('--out=$outputFile'); 809 args.add('--out=$outputFile');
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 * $pass tests are expected to pass 1562 * $pass tests are expected to pass
1568 * $failOk tests are expected to fail that we won't fix 1563 * $failOk tests are expected to fail that we won't fix
1569 * $fail tests are expected to fail that we should fix 1564 * $fail tests are expected to fail that we should fix
1570 * $crash tests are expected to crash that we should fix 1565 * $crash tests are expected to crash that we should fix
1571 * $timeout tests are allowed to timeout 1566 * $timeout tests are allowed to timeout
1572 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1567 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1573 """; 1568 """;
1574 print(report); 1569 print(report);
1575 } 1570 }
1576 } 1571 }
OLDNEW
« no previous file with comments | « pkg/unittest/lib/html_individual_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698