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

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

Issue 704733004: Fix HTML tests on non-browser runtimes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 } 832 }
833 segments.removeLast(); 833 segments.removeLast();
834 } 834 }
835 return null; 835 return null;
836 } 836 }
837 837
838 void enqueueTestCaseFromTestInformation(TestInformation info) { 838 void enqueueTestCaseFromTestInformation(TestInformation info) {
839 String testName = buildTestCaseDisplayName(suiteDir, info.originTestPath, 839 String testName = buildTestCaseDisplayName(suiteDir, info.originTestPath,
840 multitestName: info.multitestKey); 840 multitestName: info.multitestKey);
841 Set<Expectation> expectations = testExpectations.expectations(testName); 841 Set<Expectation> expectations = testExpectations.expectations(testName);
842 if (info is HtmlTestInformation && 842 if (info is HtmlTestInformation) {
843 TestUtils.isBrowserRuntime(configuration['runtime'])) { 843 if (TestUtils.isBrowserRuntime(configuration['runtime'])) {
844 enqueueBrowserTest([], null, info, testName, expectations); 844 enqueueBrowserTest([], null, info, testName, expectations);
845 }
845 return; 846 return;
846 } 847 }
847 var filePath = info.filePath; 848 var filePath = info.filePath;
848 var optionsFromFile = info.optionsFromFile; 849 var optionsFromFile = info.optionsFromFile;
849 850
850 Map buildSpecialPackageRoot(Path pubspecYamlFile) { 851 Map buildSpecialPackageRoot(Path pubspecYamlFile) {
851 var commands = <Command>[]; 852 var commands = <Command>[];
852 var packageDir = pubspecYamlFile.directoryPath; 853 var packageDir = pubspecYamlFile.directoryPath;
853 var packageName = packageDir.filename; 854 var packageName = packageDir.filename;
854 855
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
2401 * $pass tests are expected to pass 2402 * $pass tests are expected to pass
2402 * $failOk tests are expected to fail that we won't fix 2403 * $failOk tests are expected to fail that we won't fix
2403 * $fail tests are expected to fail that we should fix 2404 * $fail tests are expected to fail that we should fix
2404 * $crash tests are expected to crash that we should fix 2405 * $crash tests are expected to crash that we should fix
2405 * $timeout tests are allowed to timeout 2406 * $timeout tests are allowed to timeout
2406 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2407 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2407 """; 2408 """;
2408 print(report); 2409 print(report);
2409 } 2410 }
2410 } 2411 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698