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

Unified Diff: tests/lib_strong/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_strong/typed_data/int32x4_test.dart
diff --git a/tests/lib_strong/typed_data/int32x4_test.dart b/tests/lib_strong/typed_data/int32x4_test.dart
index 7e7d258ddc47af1b174020489d24ec5ff92b2f47..13038a681bd592ded0e4e01af2f72f018d820fee 100644
--- a/tests/lib_strong/typed_data/int32x4_test.dart
+++ b/tests/lib_strong/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