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

Unified Diff: tests/lib_strong/mirrors/redirecting_factory_different_type_test.dart

Issue 2774783002: Re-land "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_strong/mirrors/raw_type_test.dart ('k') | tests/lib_strong/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_strong/mirrors/redirecting_factory_different_type_test.dart
diff --git a/tests/lib_strong/mirrors/redirecting_factory_different_type_test.dart b/tests/lib_strong/mirrors/redirecting_factory_different_type_test.dart
index 126198718e8a77662a585eb4b9cb54966bebcd1b..d5434f391c0ef3d44de6b3eb55d0db0b705d62ee 100644
--- a/tests/lib_strong/mirrors/redirecting_factory_different_type_test.dart
+++ b/tests/lib_strong/mirrors/redirecting_factory_different_type_test.dart
@@ -12,13 +12,15 @@ 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() {
@@ -26,6 +28,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_strong/mirrors/raw_type_test.dart ('k') | tests/lib_strong/mirrors/redirecting_factory_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698