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

Unified Diff: tests/language/compile_time_constant_a_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/bailout4_test.dart ('k') | tests/language/compile_time_constant_b_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_a_test.dart
diff --git a/tests/language/compile_time_constant_a_test.dart b/tests/language/compile_time_constant_a_test.dart
index 254106497a86c1fcbf9752428c425fdc117f6426..73ff7de6ab522332ab6d5e68ac2f6c119a5b4d12 100644
--- a/tests/language/compile_time_constant_a_test.dart
+++ b/tests/language/compile_time_constant_a_test.dart
@@ -15,8 +15,8 @@ bool isUnsupportedError(o) => o is UnsupportedError;
main() {
Expect.equals(499, m1['a']);
Expect.equals(null, m1['b']);
- Expect.listEquals(['a'], m1.keys);
- Expect.listEquals([499], m1.values);
+ Expect.listEquals(['a'], m1.keys.toList());
+ Expect.listEquals([499], m1.values.toList());
Expect.isTrue(m1.containsKey('a'));
Expect.isFalse(m1.containsKey('toString'));
Expect.isTrue(m1.containsValue(499));
@@ -43,8 +43,8 @@ main() {
Expect.equals(499, m2['a']);
Expect.equals(42, m2['b']);
Expect.equals(null, m2['c']);
- Expect.listEquals(['a', 'b'], m2.keys);
- Expect.listEquals([499, 42], m2.values);
+ Expect.listEquals(['a', 'b'], m2.keys.toList());
+ Expect.listEquals([499, 42], m2.values.toList());
Expect.isTrue(m2.containsKey('a'));
Expect.isTrue(m2.containsKey('b'));
Expect.isFalse(m2.containsKey('toString'));
@@ -76,8 +76,8 @@ main() {
Expect.identical(m3['m1'], m1);
Expect.identical(m3['m2'], m2);
- Expect.listEquals(['z', 'a', 'm'], m4.keys);
- Expect.listEquals([9, 8, 7], m4.values);
+ Expect.listEquals(['z', 'a', 'm'], m4.keys.toList());
+ Expect.listEquals([9, 8, 7], m4.values.toList());
seenKeys = [];
seenValues = [];
m4.forEach((key, value) {
@@ -96,8 +96,8 @@ main() {
Expect.isTrue(m7.isEmpty);
Expect.equals(0, m7.length);
Expect.equals(null, m7['b']);
- Expect.listEquals([], m7.keys);
- Expect.listEquals([], m7.values);
+ Expect.listEquals([], m7.keys.toList());
+ Expect.listEquals([], m7.values.toList());
Expect.isFalse(m7.containsKey('a'));
Expect.isFalse(m7.containsKey('toString'));
Expect.isFalse(m7.containsValue(499));
« no previous file with comments | « tests/language/bailout4_test.dart ('k') | tests/language/compile_time_constant_b_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698