Index: lib/unittest/config.dart |
diff --git a/lib/unittest/config.dart b/lib/unittest/config.dart |
index 9507b508f92f8ad9dcb93bce14a37ceae4e88baa..88ecbf0765a0552f585247872723c1300cf3403e 100644 |
--- a/lib/unittest/config.dart |
+++ b/lib/unittest/config.dart |
@@ -2,6 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+/** This file is sourced by unitest.dart. */ |
+ |
/** |
* Hooks to configure the unittest library for different platforms. This class |
* implements the API in a platform-independent way. Tests that want to take |
@@ -36,11 +38,11 @@ class Configuration { |
*/ |
void onDone(int passed, int failed, int errors, List<TestCase> results) { |
// Print each test's result. |
- for (final test in _tests) { |
- print('${test.result.toUpperCase()}: ${test.description}'); |
+ for (final t in _tests) { |
Siggi Cherem (dart-lang)
2012/04/12 01:13:53
this is because we are getting errors if names col
Bob Nystrom
2012/04/12 16:45:49
Shadowing is an error? Can you leave a TODO explai
Siggi Cherem (dart-lang)
2012/04/12 17:36:28
Not sure, I thought this was intended (spec #3.1)?
Bob Nystrom
2012/04/12 18:01:37
Argh, the spec it's allowed but a static warning,
|
+ print('${t.result.toUpperCase()}: ${t.description}'); |
- if (test.message != '') { |
- print(' ${test.message}'); |
+ if (t.message != '') { |
+ print(' ${t.message}'); |
} |
} |