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

Unified Diff: tests/language_strong/null_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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_strong/null_test.dart
diff --git a/tests/language_strong/null_test.dart b/tests/language_strong/null_test.dart
index 564a360eaae0fc60e0435a3068d263942afe57dd..6315395b11273053c2d0eb79c978bf1f8f76055c 100644
--- a/tests/language_strong/null_test.dart
+++ b/tests/language_strong/null_test.dart
@@ -12,11 +12,11 @@ class BadInherit
extends Null // //# 01: compile-time error
implements Null // //# 02: compile-time error
extends Object with Null // //# 03: compile-time error
-{}
+ {}
class EqualsNotCalled {
int get hashCode => throw "And don't warn!";
- bool operator ==(Object other) {
+ bool operator==(Object other) {
throw "SHOULD NOT GET HERE";
}
}
@@ -40,9 +40,7 @@ confuse(x) {
try {
if (new DateTime.now().millisecondsSinceEpoch == 42) x = 42;
throw [x];
- } on dynamic catch (e) {
- return e[0];
- }
+ } on dynamic catch (e) { return e[0]; }
return 42;
}
@@ -53,7 +51,7 @@ void main() {
}
void test() {
- new BadInherit(); // Make sure class is referenced.
+ new BadInherit(); // Make sure class is referenced.
int foo(var obj) {
Expect.equals(null, obj);
@@ -68,7 +66,7 @@ void test() {
}
var val = 1;
- var obj = confuse(null); // Null value that isn't known at compile-time.
+ var obj = confuse(null); // Null value that isn't known at compile-time.
Expect.isTrue(identical(obj, null), "identical");
Expect.isTrue(null == null);
@@ -123,7 +121,7 @@ void test() {
Expect.isTrue(obj is dynamic);
Expect.isFalse(null is String);
Expect.isFalse(obj is String);
- Expect.isFalse(0 is Null); // It's only assignable.
+ Expect.isFalse(0 is Null); // It's only assignable.
Expect.isFalse(null is! Null);
Expect.isFalse(obj is! Null);
Expect.isFalse(null is! Object);
@@ -132,7 +130,7 @@ void test() {
Expect.isFalse(obj is! dynamic);
Expect.isTrue(null is! String);
Expect.isTrue(obj is! String);
- Expect.isTrue(0 is! Null); // It's only assignable.
+ Expect.isTrue(0 is! Null); // It's only assignable.
// Test "is" operator with generic type variable.
Expect.isTrue(new Generic<Null>().test(null));
@@ -203,6 +201,7 @@ void test() {
Expect.throws(() => Function.apply(noSuchMethod, [mirror]));
}
+
class CaptureInvocationMirror {
noSuchMethod(mirror) => mirror;
}
« no previous file with comments | « tests/language_strong/not_enough_positional_arguments_test.dart ('k') | tests/language_strong/number_identifier_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698