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

Unified Diff: tests/lib/mirrors/redirecting_factory_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/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>);
}
+
« no previous file with comments | « tests/lib/mirrors/redirecting_factory_different_type_test.dart ('k') | tests/lib/mirrors/reflected_type_classes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698