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

Unified Diff: tests/language/deferred_constraints_constants_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
Index: tests/language/deferred_constraints_constants_test.dart
diff --git a/tests/language/deferred_constraints_constants_test.dart b/tests/language/deferred_constraints_constants_test.dart
index a45ed15034d253abc1ed4f41e909ea6600d0de66..c975f51c9b20fd61b07cb01f6e269cdca7eb22b3 100644
--- a/tests/language/deferred_constraints_constants_test.dart
+++ b/tests/language/deferred_constraints_constants_test.dart
@@ -11,32 +11,36 @@ import "deferred_constraints_constants_lib.dart" deferred as lib;
const myConst1 =
lib.constantInstance; //# reference1: compile-time error
/* // //# reference1: continued
- 499;
+ 499;
*/ // //# reference1: continued
const myConst2 =
lib.Const.instance; //# reference2: compile-time error
/* // //# reference2: continued
- 499;
+ 499;
*/ // //# reference2: continued
-void f1({a:
+void f1(
+ {a:
const lib.Const() //# default_argument1: compile-time error
/* // //# default_argument1: continued
- 499
+ 499
*/ // //# default_argument1: continued
-}) {}
+ }) {}
-void f2({a:
+void f2(
+ {a:
lib.constantInstance //# default_argument2: compile-time error
/* // //# default_argument2: continued
- 499
+ 499
*/ // //# default_argument2: continued
-}) {}
+ }) {}
@lib.Const() //# metadata1: compile-time error
class H1 {}
+
@lib.Const.instance //# metadata2: compile-time error
class H2 {}
+
@lib.Const.namedConstructor() //# metadata3: compile-time error
class H3 {}
@@ -57,11 +61,10 @@ void main() {
var h3 = new H3();
// Need to access the metadata to trigger the expected compilation error.
- reflectClass(H1).metadata; // metadata1: continued
- reflectClass(H2).metadata; // metadata2: continued
- reflectClass(H3).metadata; // metadata3: continued
+ reflectClass(H1).metadata; // metadata1: continued
+ reflectClass(H2).metadata; // metadata2: continued
+ reflectClass(H3).metadata; // metadata3: continued
asyncEnd();
});
}
-
« no previous file with comments | « tests/language/default_factory_test.dart ('k') | tests/language/deferred_constraints_type_annotation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698