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

Side by Side Diff: lib/src/runner/reporter/compact.dart

Issue 1239693002: Pass actual TestPlatform and OperatingSystem values to Suite. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Update pubspec. Created 5 years, 5 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 | « lib/src/runner/loader.dart ('k') | lib/src/runner/reporter/expanded.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library test.runner.reporter.compact; 5 library test.runner.reporter.compact;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 /// This differs from the test's own description in that it may also include 324 /// This differs from the test's own description in that it may also include
325 /// the suite's name. 325 /// the suite's name.
326 String _description(LiveTest liveTest) { 326 String _description(LiveTest liveTest) {
327 var name = liveTest.test.name; 327 var name = liveTest.test.name;
328 328
329 if (_printPath && liveTest.suite.path != null) { 329 if (_printPath && liveTest.suite.path != null) {
330 name = "${liveTest.suite.path}: $name"; 330 name = "${liveTest.suite.path}: $name";
331 } 331 }
332 332
333 if (_printPlatform && liveTest.suite.platform != null) { 333 if (_printPlatform && liveTest.suite.platform != null) {
334 name = "[${liveTest.suite.platform}] $name"; 334 name = "[${liveTest.suite.platform.name}] $name";
335 } 335 }
336 336
337 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor"; 337 if (liveTest.suite is LoadSuite) name = "$_bold$_gray$name$_noColor";
338 338
339 return name; 339 return name;
340 } 340 }
341 } 341 }
OLDNEW
« no previous file with comments | « lib/src/runner/loader.dart ('k') | lib/src/runner/reporter/expanded.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698