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

Side by Side Diff: lib/src/runner/console_reporter.dart

Issue 955543002: Move a bunch of src/ files into subdirectories. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Fix library tags Created 5 years, 10 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/remote_exception.dart ('k') | lib/src/runner/engine.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 unittest.console_reporter; 5 library unittest.runner.console_reporter;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import '../backend/live_test.dart';
11 import '../backend/state.dart';
12 import '../backend/suite.dart';
13 import '../util/io.dart';
14 import '../utils.dart';
10 import 'engine.dart'; 15 import 'engine.dart';
11 import 'io.dart';
12 import 'live_test.dart';
13 import 'state.dart';
14 import 'suite.dart';
15 import 'utils.dart';
16 16
17 /// The terminal escape for green text, or the empty string if this is Windows 17 /// The terminal escape for green text, or the empty string if this is Windows
18 /// or not outputting to a terminal. 18 /// or not outputting to a terminal.
19 final _green = getSpecial('\u001b[32m'); 19 final _green = getSpecial('\u001b[32m');
20 20
21 /// The terminal escape for red text, or the empty string if this is Windows or 21 /// The terminal escape for red text, or the empty string if this is Windows or
22 /// not outputting to a terminal. 22 /// not outputting to a terminal.
23 final _red = getSpecial('\u001b[31m'); 23 final _red = getSpecial('\u001b[31m');
24 24
25 /// The terminal escape for removing test coloring, or the empty string if this 25 /// The terminal escape for removing test coloring, or the empty string if this
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 /// Returns a description of [liveTest]. 223 /// Returns a description of [liveTest].
224 /// 224 ///
225 /// This differs from the test's own description in that it may also include 225 /// This differs from the test's own description in that it may also include
226 /// the suite's name. 226 /// the suite's name.
227 String _description(LiveTest liveTest) { 227 String _description(LiveTest liveTest) {
228 if (_multipleSuites) return "${liveTest.suite.name}: ${liveTest.test.name}"; 228 if (_multipleSuites) return "${liveTest.suite.name}: ${liveTest.test.name}";
229 return liveTest.test.name; 229 return liveTest.test.name;
230 } 230 }
231 } 231 }
OLDNEW
« no previous file with comments | « lib/src/remote_exception.dart ('k') | lib/src/runner/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698