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

Unified Diff: tests/compiler/dart2js/generic_method_type_usage_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/compiler/dart2js/generic_method_type_usage_test.dart
diff --git a/tests/compiler/dart2js/generic_method_type_usage_test.dart b/tests/compiler/dart2js/generic_method_type_usage_test.dart
index 9ec4fbe6cfbcb5f92fa6c29def5d5c6391beca4e..b1f0f222262d2cd91bf6b83bc3d3b9ca910f4040 100644
--- a/tests/compiler/dart2js/generic_method_type_usage_test.dart
+++ b/tests/compiler/dart2js/generic_method_type_usage_test.dart
@@ -53,7 +53,6 @@ main() {
print(aFunction<Set>(null));
}
''',
-
'cannot_new_method_type_variable.dart': '''
class C {
X aMethod<X>() => new X();
@@ -63,7 +62,6 @@ main() {
new C().aMethod<Set>();
}
''',
-
'cannot_new_function_type_variable.dart': '''
X aFunction<X>() => new X(42);
@@ -73,7 +71,6 @@ main() {
''',
};
-
Future runTest(Uri main, {MessageKind warning, MessageKind info}) async {
print("----\nentry-point: $main\n");
@@ -101,15 +98,12 @@ Future runTest(Uri main, {MessageKind warning, MessageKind info}) async {
void main() {
asyncTest(() async {
- await runTest(
- Uri.parse('memory:type_variable_is_dynamic.dart'));
+ await runTest(Uri.parse('memory:type_variable_is_dynamic.dart'));
- await runTest(
- Uri.parse('memory:cannot_new_method_type_variable.dart'),
+ await runTest(Uri.parse('memory:cannot_new_method_type_variable.dart'),
warning: MessageKind.CANNOT_INSTANTIATE_TYPE_VARIABLE);
- await runTest(
- Uri.parse('memory:cannot_new_function_type_variable.dart'),
+ await runTest(Uri.parse('memory:cannot_new_function_type_variable.dart'),
warning: MessageKind.CANNOT_INSTANTIATE_TYPE_VARIABLE);
});
}

Powered by Google App Engine
This is Rietveld 408576698