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

Unified Diff: tests/language/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
« no previous file with comments | « tests/language/null_is_bottom_type_test.dart ('k') | tests/language/number_identifier_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/null_test.dart
diff --git a/tests/language/null_test.dart b/tests/language/null_test.dart
index 91ec237ceddc0525488772720a9911041f2ba057..06debc054e6dbdacf74dac6c58255344c495a8de 100644
--- a/tests/language/null_test.dart
+++ b/tests/language/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";
}
}
@@ -47,7 +47,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);
@@ -62,7 +62,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);
@@ -117,7 +117,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);
@@ -126,7 +126,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));
@@ -197,6 +197,7 @@ void test() {
Expect.throws(() => Function.apply(noSuchMethod, [mirror]));
}
+
class CaptureInvocationMirror {
noSuchMethod(mirror) => mirror;
}
« no previous file with comments | « tests/language/null_is_bottom_type_test.dart ('k') | tests/language/number_identifier_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698