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

Unified Diff: tests/lib/mirrors/redirecting_factory_different_type_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/lib/mirrors/raw_type_test.dart ('k') | tests/lib/mirrors/redirecting_factory_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/redirecting_factory_different_type_test.dart
diff --git a/tests/lib/mirrors/redirecting_factory_different_type_test.dart b/tests/lib/mirrors/redirecting_factory_different_type_test.dart
index d5434f391c0ef3d44de6b3eb55d0db0b705d62ee..126198718e8a77662a585eb4b9cb54966bebcd1b 100644
--- a/tests/lib/mirrors/redirecting_factory_different_type_test.dart
+++ b/tests/lib/mirrors/redirecting_factory_different_type_test.dart
@@ -12,15 +12,13 @@ import 'package:expect/expect.dart';
class A {
factory A(
String // //# 01: static type warning
- x) = B;
+ x) = B;
A._();
}
class B extends A {
var x;
- B(int x)
- : super._(),
- this.x = x;
+ B(int x) : super._(), this.x = x;
}
main() {
@@ -28,6 +26,6 @@ main() {
// The type-annotation in A's constructor must be ignored.
var b = cm.newInstance(const Symbol(''), [499]).reflectee;
Expect.equals(499, b.x);
- Expect.throws(
- () => cm.newInstance(const Symbol(''), ["str"]), (e) => e is TypeError);
+ Expect.throws(() => cm.newInstance(const Symbol(''), ["str"]),
+ (e) => e is TypeError);
}
« no previous file with comments | « tests/lib/mirrors/raw_type_test.dart ('k') | tests/lib/mirrors/redirecting_factory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698