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

Unified Diff: tests/corelib_strong/range_error_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/corelib_strong/range_error_test.dart
diff --git a/tests/corelib_strong/range_error_test.dart b/tests/corelib_strong/range_error_test.dart
index ccb0cb764d2b746ab69c1d4e636a92fa573b2928..05107e8a2086c3d79576abf5046145167ba8a31d 100644
--- a/tests/corelib_strong/range_error_test.dart
+++ b/tests/corelib_strong/range_error_test.dart
@@ -56,15 +56,15 @@ void testToString() {
for (var message in [null, "THEMESSAGE"]) {
var value = 37;
for (var re in [
- new ArgumentError.value(value, name, message),
- new RangeError.value(value, name, message),
- new RangeError.index(value, [], name, message),
- new RangeError.range(value, 0, 24, name, message)
+ new ArgumentError.value(value, name, message),
+ new RangeError.value(value, name, message),
+ new RangeError.index(value, [], name, message),
+ new RangeError.range(value, 0, 24, name, message)
]) {
var str = re.toString();
if (name != null) Expect.isTrue(str.contains(name), "$name in $str");
- if (message != null) Expect.isTrue(str.contains(message),
- "$message in $str");
+ if (message != null)
+ Expect.isTrue(str.contains(message), "$message in $str");
Expect.isTrue(str.contains("$value"), "$value in $str");
// No empty ':' separated parts - in that case the colon is omitted too.
Expect.isFalse(str.contains(new RegExp(":\s*:")));

Powered by Google App Engine
This is Rietveld 408576698