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

Unified Diff: tests/language/compile_time_constant_k_test.dart

Issue 158733003: Fix language tests wrt. warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests and status. Created 6 years, 10 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
« no previous file with comments | « tests/language/closure_type_test.dart ('k') | tests/language/compile_time_constant_o_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant_k_test.dart
diff --git a/tests/language/compile_time_constant_k_test.dart b/tests/language/compile_time_constant_k_test.dart
index f4260a3e5b9ffbaeb32b3393c9120280fc4e83c8..645d22d9b1663657ee40a8e2f12a1a0c68761073 100644
--- a/tests/language/compile_time_constant_k_test.dart
+++ b/tests/language/compile_time_constant_k_test.dart
@@ -4,11 +4,15 @@
import "package:expect/expect.dart";
-const x = const { 'a': 3, 'a': 4 };
-const y = const { 'a': 10, 'b': 11, 'a': 12, 'b': 13, 'a': 14 };
-const z = const { '__proto__': 496,
- '__proto__': 497,
- '__proto__': 498,
+const x = const {
+ 'a': 3, /// 01: static type warning
+ 'a': 4 };
+const y = const { 'a': 10, 'b': 11, 'a': 12, /// 02: static type warning
+ 'b': 13, 'a': 14 }; /// 02: continued
+const z = const {
+ '__proto__': 496, /// 03: static type warning
+ '__proto__': 497, /// 03: continued
+ '__proto__': 498, /// 03: continued
'__proto__': 499 };
const x2 = const { 'a': 4 };
@@ -17,6 +21,6 @@ const z2 = const { '__proto__': 499 };
main() {
Expect.identical(x2, x);
- Expect.identical(y2, y);
+ Expect.identical(y2, y); /// 02: continued
Expect.identical(z2, z);
}
« no previous file with comments | « tests/language/closure_type_test.dart ('k') | tests/language/compile_time_constant_o_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698