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

Unified Diff: tests/lib/typed_data/int32x4_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/lib/typed_data/int32x4_test.dart
diff --git a/tests/lib/typed_data/int32x4_test.dart b/tests/lib/typed_data/int32x4_test.dart
index a15a5fb57dba75171f29ae3a0e40b842ed30b666..aa412315ae942985c26d0ca5849e5fc687310ef9 100644
--- a/tests/lib/typed_data/int32x4_test.dart
+++ b/tests/lib/typed_data/int32x4_test.dart
@@ -9,34 +9,30 @@ import 'dart:typed_data';
import 'package:expect/expect.dart';
void testBadArguments() {
- Expect.throws(() => new Int32x4(null, 2, 3, 4),
- (e) => e is ArgumentError);
- Expect.throws(() => new Int32x4(1, null, 3, 4),
- (e) => e is ArgumentError);
- Expect.throws(() => new Int32x4(1, 2, null, 4),
- (e) => e is ArgumentError);
- Expect.throws(() => new Int32x4(1, 2, 3, null),
- (e) => e is ArgumentError);
+ Expect.throws(() => new Int32x4(null, 2, 3, 4), (e) => e is ArgumentError);
+ Expect.throws(() => new Int32x4(1, null, 3, 4), (e) => e is ArgumentError);
+ Expect.throws(() => new Int32x4(1, 2, null, 4), (e) => e is ArgumentError);
+ Expect.throws(() => new Int32x4(1, 2, 3, null), (e) => e is ArgumentError);
// Use a local variable typed as dynamic to avoid static warnings.
var str = "foo";
Expect.throws(() => new Int32x4(str, 2, 3, 4),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
Expect.throws(() => new Int32x4(1, str, 3, 4),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
Expect.throws(() => new Int32x4(1, 2, str, 4),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
Expect.throws(() => new Int32x4(1, 2, 3, str),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
// Use a local variable typed as dynamic to avoid static warnings.
var d = 0.5;
Expect.throws(() => new Int32x4(d, 2, 3, 4),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
Expect.throws(() => new Int32x4(1, d, 3, 4),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
Expect.throws(() => new Int32x4(1, 2, d, 4),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
Expect.throws(() => new Int32x4(1, 2, 3, d),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
}
void testBigArguments() {

Powered by Google App Engine
This is Rietveld 408576698