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

Unified Diff: tests/language_strong/list_literal_syntax_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_strong/list_literal_syntax_test.dart
diff --git a/tests/language_strong/list_literal_syntax_test.dart b/tests/language_strong/list_literal_syntax_test.dart
index c1a2060a00c56c1d79010663faeb19c10110cd3b..783f571d45c5e6a2ca35b625f21623084fad476a 100644
--- a/tests/language_strong/list_literal_syntax_test.dart
+++ b/tests/language_strong/list_literal_syntax_test.dart
@@ -8,50 +8,61 @@ abstract class I {}
void main() {
var list;
- list = <int
+ list = <
+ int
I //# 00: compile-time error
, int //# 01: static type warning
- >[0];
+ >[0];
Expect.equals(1, list.length);
- list = <int
+ list = <
+ int
, int //# 02: static type warning
, int //# 02: continued
- >[0];
+ >[0];
Expect.equals(1, list.length);
- list = <int
+ list = <
+ int
, int //# 03: static type warning
, int //# 03: continued
, int //# 03: continued
- >[0];
+ >[0];
Expect.equals(1, list.length);
list =
<> //# 04: compile-time error
- [0];
+ [0];
Expect.equals(1, list.length);
list =
<<>> //# 05: compile-time error
- [0];
+ [0];
Expect.equals(1, list.length);
list =
<<<>>> //# 06: compile-time error
- [0];
+ [0];
Expect.equals(1, list.length);
list =
<[]> //# 07: compile-time error
- [0];
+ [0];
Expect.equals(1, list.length);
- list = <int>[<int>[<int>[1][0]][0]];
+ list = <int>[
+ <int>[
+ <int>[1][0]
+ ][0]
+ ];
Expect.equals(1, list.length);
Expect.equals(1, list[0]);
- list = <int>[<List<int>>[[1]][0][0]];
+ list = <int>[
+ <List<int>>[
+ [1]
+ ][0][0]
+ ];
Expect.equals(1, list.length);
Expect.equals(1, list[0]);
}
« no previous file with comments | « tests/language_strong/library_ambiguous_test.dart ('k') | tests/language_strong/literal_unary_plus_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698