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

Unified Diff: tests/standalone/assert_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/standalone/assert_test.dart
diff --git a/tests/standalone/assert_test.dart b/tests/standalone/assert_test.dart
index add14e3a93e8e6c313acd5f7b8a8cd4f0d98b2f4..17f9e314a5b467209cb8aa6b5e2e5b7b7f55cd98 100644
--- a/tests/standalone/assert_test.dart
+++ b/tests/standalone/assert_test.dart
@@ -14,18 +14,19 @@ class AssertTest {
Expect.fail("Assertion 'false' didn't fail.");
} on AssertionError catch (error) {
Expect.isTrue(error.toString().contains("'false'"));
- Expect.isTrue(error.stackTrace.toString().contains(
- "assert_test.dart:13:14"));
+ Expect.isTrue(
+ error.stackTrace.toString().contains("assert_test.dart:13:14"));
}
}
+
static testClosure() {
try {
assert(() => false);
Expect.fail("Assertion '() => false' didn't fail.");
} on AssertionError catch (error) {
Expect.isTrue(error.toString().contains("'() => false'"));
- Expect.isTrue(error.stackTrace.toString().contains(
- "assert_test.dart:23:14"));
+ Expect.isTrue(
+ error.stackTrace.toString().contains("assert_test.dart:24:14"));
}
}

Powered by Google App Engine
This is Rietveld 408576698