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

Unified Diff: lib/src/util/io.dart

Issue 961003005: Add a flag to control the use of color in the test runner. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Code review changes 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/console_reporter.dart ('k') | test/runner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/io.dart
diff --git a/lib/src/util/io.dart b/lib/src/util/io.dart
index 733f1a9ecda3f62d10bda7ce6caf7bf7b75ae7db..f84796f9c3cf277b90d2ea4bdfdd30c3731ce633 100644
--- a/lib/src/util/io.dart
+++ b/lib/src/util/io.dart
@@ -33,13 +33,6 @@ bool get canUseSpecialChars =>
Platform.operatingSystem != 'windows' &&
Platform.environment["_UNITTEST_USE_COLOR"] != "false";
-/// Gets a "special" string (ANSI escape or Unicode).
-///
-/// On Windows or when not printing to a terminal, returns something else since
-/// those aren't supported.
-String getSpecial(String special, [String onWindows = '']) =>
- canUseSpecialChars ? special : onWindows;
-
/// Creates a temporary directory and passes its path to [fn].
///
/// Once the [Future] returned by [fn] completes, the temporary directory and
« no previous file with comments | « lib/src/runner/console_reporter.dart ('k') | test/runner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698