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

Unified Diff: utils/tests/string_encoding/dunit.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « utils/tests/string_encoding/benchmark_runner.dart ('k') | utils/tests/string_encoding/utf16_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/string_encoding/dunit.dart
diff --git a/utils/tests/string_encoding/dunit.dart b/utils/tests/string_encoding/dunit.dart
index 716acb49044245a38d675e3a94b7358c0bc9309e..3c092b376e6a1f80a5064813f7a41cb8ef2341ff 100644
--- a/utils/tests/string_encoding/dunit.dart
+++ b/utils/tests/string_encoding/dunit.dart
@@ -37,15 +37,15 @@ class TestSuite {
print("OK -- ALL TESTS PASS (${results.length} run)");
} else {
for(TestResult r in
- results.filter(bool _(TestResult r) => !(r is PassedTest))) {
+ results.where(bool _(TestResult r) => !(r is PassedTest))) {
print(r);
}
int passedTests =
- results.filter(bool _(TestResult r) => r is PassedTest).length;
+ results.where(bool _(TestResult r) => r is PassedTest).length;
int failures =
- results.filter(bool _(TestResult r) => r is FailedTest).length;
+ results.where(bool _(TestResult r) => r is FailedTest).length;
int errors =
- results.filter(bool _(TestResult r) => r is TestError).length;
+ results.where(bool _(TestResult r) => r is TestError).length;
print("FAIL -- TESTS RUN: ${results.length}");
print(" PASSED: ${passedTests}");
print(" FAILED: ${failures}");
« no previous file with comments | « utils/tests/string_encoding/benchmark_runner.dart ('k') | utils/tests/string_encoding/utf16_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698