Index: tests/lib/mirrors/redirecting_factory_test.dart |
diff --git a/tests/lib/mirrors/redirecting_factory_test.dart b/tests/lib/mirrors/redirecting_factory_test.dart |
index f37775d356e31b68ee0a94360973d340d2a72eaf..1bf784c417cc97c77a91e65ed79cbbe2350c3597 100644 |
--- a/tests/lib/mirrors/redirecting_factory_test.dart |
+++ b/tests/lib/mirrors/redirecting_factory_test.dart |
@@ -41,7 +41,8 @@ class Class<T1, T2> { |
factory Class.redirectingFactoryStringIntTypeParameters(a, b) = |
Class<String, int>.factoryNoOptional; |
- factory Class.redirectingFactoryStringTypeParameters(a, b) = Class |
+ factory Class.redirectingFactoryStringTypeParameters(a, b) = |
+ Class |
<String> // //# 02: static type warning |
.factoryNoOptional; |
@@ -58,26 +59,26 @@ main() { |
var instanceMirror = classMirror.newInstance(const Symbol(''), [2]); |
Expect.equals(2, instanceMirror.reflectee.field); |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryNoOptional, [8, 6]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryNoOptional, [8, 6]); |
Expect.equals(2, instanceMirror.reflectee.field); |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryUnnamedOptional, [43, 1]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryUnnamedOptional, [43, 1]); |
Expect.equals(42, instanceMirror.reflectee.field); |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryMoreUnnamedOptional, [43, 1]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryMoreUnnamedOptional, [43, 1]); |
Expect.equals(40, instanceMirror.reflectee.field); |
- instanceMirror = classMirror |
- .newInstance(#redirectingFactoryStringIntTypeParameters, [43, 1]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryStringIntTypeParameters, [43, 1]); |
Expect.equals(42, instanceMirror.reflectee.field); |
Expect.isTrue(instanceMirror.reflectee is Class<String, int>); |
Expect.isFalse(instanceMirror.reflectee is Class<int, String>); |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryStringTypeParameters, [43, 1]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryStringTypeParameters, [43, 1]); |
Expect.equals(42, instanceMirror.reflectee.field); |
Expect.isTrue(instanceMirror.reflectee is Class<String, int>); |
Expect.isTrue(instanceMirror.reflectee is Class<String, String>); |
@@ -87,32 +88,37 @@ main() { |
isDart2js = true; //# 01: ok |
if (isDart2js) return; |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryUnnamedOptional, [43]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryUnnamedOptional, [43]); |
Expect.equals(1, instanceMirror.reflectee.field); |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryNamedOptional, [43]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryNamedOptional, [43]); |
Expect.equals(1, instanceMirror.reflectee.field); |
instanceMirror = classMirror.newInstance( |
- #redirectingFactoryNamedOptional, [43], new Map()..[#b] = 1); |
+ #redirectingFactoryNamedOptional, |
+ [43], |
+ new Map()..[#b] = 1); |
Expect.equals(42, instanceMirror.reflectee.field); |
instanceMirror = classMirror.newInstance( |
- #redirectingFactoryMoreNamedOptional, [43], new Map()..[#b] = 1); |
+ #redirectingFactoryMoreNamedOptional, |
+ [43], |
+ new Map()..[#b] = 1); |
Expect.equals(40, instanceMirror.reflectee.field); |
classMirror = reflect(new Class<String, int>(42)).type; |
- instanceMirror = |
- classMirror.newInstance(#redirectingFactoryTypeParameters, [43, 1]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryTypeParameters, [43, 1]); |
Expect.equals(42, instanceMirror.reflectee.field); |
Expect.isTrue(instanceMirror.reflectee is Class<String, int>); |
Expect.isFalse(instanceMirror.reflectee is Class<int, String>); |
- instanceMirror = classMirror |
- .newInstance(#redirectingFactoryReversedTypeParameters, [43, 1]); |
+ instanceMirror = classMirror.newInstance( |
+ #redirectingFactoryReversedTypeParameters, [43, 1]); |
Expect.equals(42, instanceMirror.reflectee.field); |
Expect.isTrue(instanceMirror.reflectee is Class<int, String>); |
Expect.isFalse(instanceMirror.reflectee is Class<String, int>); |
} |
+ |