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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 75213002: Fix SummaryReport after introduction of the RuntimeError,CompileTimeError,... markers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index 1c6e185c058384cd49af7b0c895a8db9e8205e92..b6cd021b92eb89c9c78dd40a6698adfbc108bc22 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -1113,7 +1113,7 @@ class StandardTestSuite extends TestSuite {
contentShellFilename, fullHtmlPath, contentShellOptions,
dartFlags, configurationDir));
} else {
- // Use the BrowserController to send the test to a browser process.
+ assert(configuration['use_browser_controller']);
// This command is not actually run, it is used for reproducing
// the failure.
args = ['tools/testing/dart/launch_browser.dart',
@@ -1996,6 +1996,8 @@ class SummaryReport {
static int compileErrorSkip = 0;
static void add(Set<Expectation> expectations) {
+ bool containsFail = expectations.any(
+ (expectation) => expectation.canBeOutcomeOf(Expectation.FAIL));
++total;
if (expectations.contains(Expectation.SKIP)) {
++skipped;
@@ -2003,8 +2005,9 @@ class SummaryReport {
++skipped;
++skippedByDesign;
} else {
+ // Counts the number of flaky tests.
if (expectations.contains(Expectation.PASS) &&
- expectations.contains(Expectation.FAIL) &&
+ containsFail &&
!expectations.contains(Expectation.CRASH) &&
!expectations.contains(Expectation.OK)) {
++noCrash;
@@ -2016,7 +2019,7 @@ class SummaryReport {
expectations.length == 2) {
++failOk;
}
- if (expectations.contains(Expectation.FAIL) && expectations.length == 1) {
+ if (containsFail && expectations.length == 1) {
++fail;
}
if (expectations.contains(Expectation.CRASH) &&
« 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