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

Unified Diff: tests/language/generic_instanceof2_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/language/generic_instanceof2_test.dart
diff --git a/tests/language/generic_instanceof2_test.dart b/tests/language/generic_instanceof2_test.dart
index 38fdbcd83d8f20ccc2663ceae8d2550f107c51bd..2998bc7615a91fa791889cf598fd7ad190fc47f7 100644
--- a/tests/language/generic_instanceof2_test.dart
+++ b/tests/language/generic_instanceof2_test.dart
@@ -9,7 +9,7 @@ import "package:expect/expect.dart";
// Test factory case.
class Foo<K, V> {
- Foo() { }
+ Foo() {}
factory Foo.fac() {
return new Foo<K, V>();
@@ -22,47 +22,46 @@ class Foo<K, V> {
// Test constructor case.
class Moo<K, V> {
- Moo() { }
+ Moo() {}
MooString() {
return new Moo<K, String>();
}
}
-testAll () {
+testAll() {
var foo_int_num = new Foo<int, num>();
Expect.isTrue(foo_int_num is Foo<int, num>);
- Expect.isTrue(foo_int_num is !Foo<int, String>);
+ Expect.isTrue(foo_int_num is! Foo<int, String>);
// foo_int_num.FooString() returns a Foo<int, String>
- Expect.isTrue(foo_int_num.FooString() is !Foo<int, num>);
+ Expect.isTrue(foo_int_num.FooString() is! Foo<int, num>);
Expect.isTrue(foo_int_num.FooString() is Foo<int, String>);
var foo_raw = new Foo();
Expect.isTrue(foo_raw is Foo<int, num>);
Expect.isTrue(foo_raw is Foo<int, String>);
// foo_raw.FooString() returns a Foo<dynamic, String>
- Expect.isTrue(foo_raw.FooString() is !Foo<int, num>);
+ Expect.isTrue(foo_raw.FooString() is! Foo<int, num>);
Expect.isTrue(foo_raw.FooString() is Foo<int, String>);
var moo_int_num = new Moo<int, num>();
Expect.isTrue(moo_int_num is Moo<int, num>);
- Expect.isTrue(moo_int_num is !Moo<int, String>);
+ Expect.isTrue(moo_int_num is! Moo<int, String>);
// moo_int_num.MooString() returns a Moo<int, String>
- Expect.isTrue(moo_int_num.MooString() is !Moo<int, num>);
+ Expect.isTrue(moo_int_num.MooString() is! Moo<int, num>);
Expect.isTrue(moo_int_num.MooString() is Moo<int, String>);
var moo_raw = new Moo();
Expect.isTrue(moo_raw is Moo<int, num>);
Expect.isTrue(moo_raw is Moo<int, String>);
// moo_raw.MooString() returns a Moo<dynamic, String>
- Expect.isTrue(moo_raw.MooString() is !Moo<int, num>);
+ Expect.isTrue(moo_raw.MooString() is! Moo<int, num>);
Expect.isTrue(moo_raw.MooString() is Moo<int, String>);
}
-
main() {
// Repeat type checks so that inlined tests can be tested as well.
for (int i = 0; i < 5; i++) {
testAll();
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698