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

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

Issue 2933973002: Simplify Command classes. (Closed)
Patch Set: Rename class. Created 3 years, 6 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
« no previous file with comments | « tools/testing/dart/runtime_configuration.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:convert' show JSON; 5 import 'dart:convert' show JSON;
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import 'command.dart';
9 import 'command_output.dart';
8 import 'configuration.dart'; 10 import 'configuration.dart';
9 import 'expectation.dart'; 11 import 'expectation.dart';
10 import 'path.dart'; 12 import 'path.dart';
11 import 'summary_report.dart'; 13 import 'summary_report.dart';
12 import 'test_runner.dart'; 14 import 'test_runner.dart';
13 import 'utils.dart'; 15 import 'utils.dart';
14 16
15 /// Controls how message strings are processed before being displayed. 17 /// Controls how message strings are processed before being displayed.
16 class Formatter { 18 class Formatter {
17 /// Messages are left as-is. 19 /// Messages are left as-is.
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 } 668 }
667 669
668 String _buildSummaryEnd(int failedTests) { 670 String _buildSummaryEnd(int failedTests) {
669 if (failedTests == 0) { 671 if (failedTests == 0) {
670 return '\n===\n=== All tests succeeded\n===\n'; 672 return '\n===\n=== All tests succeeded\n===\n';
671 } else { 673 } else {
672 var pluralSuffix = failedTests != 1 ? 's' : ''; 674 var pluralSuffix = failedTests != 1 ? 's' : '';
673 return '\n===\n=== ${failedTests} test$pluralSuffix failed\n===\n'; 675 return '\n===\n=== ${failedTests} test$pluralSuffix failed\n===\n';
674 } 676 }
675 } 677 }
OLDNEW
« no previous file with comments | « tools/testing/dart/runtime_configuration.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698