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

Unified Diff: tests/language/map_literal_test.dart

Issue 10871071: - Change "static final" to "static const" in the tests/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/inst_field_initializer_test.dart ('k') | tests/language/static_const_field_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/map_literal_test.dart
===================================================================
--- tests/language/map_literal_test.dart (revision 11349)
+++ tests/language/map_literal_test.dart (working copy)
@@ -24,9 +24,9 @@
}
testLocalInit() {
- // Test construction of static final map literals
+ // Test construction of static const map literals
var map1 = {"a":1, "b":2};
- // Test construction of static final map literals, with numbers
+ // Test construction of static const map literals, with numbers
var map2 = {"1":1, "2":2};
Expect.equals(1, map1["a"]);
@@ -40,10 +40,10 @@
class StaticInit {
StaticInit() {}
- // Test construction of static final map literals
- static final map1 = const {"a":1, "b":2};
- // Test construction of static final map literals, with numbers
- static final map2 = const {"1":1, "2":2};
+ // Test construction of static const map literals
+ static const map1 = const {"a":1, "b":2};
+ // Test construction of static const map literals, with numbers
+ static const map2 = const {"1":1, "2":2};
test() {
Expect.equals(1, map1["a"]);
« no previous file with comments | « tests/language/inst_field_initializer_test.dart ('k') | tests/language/static_const_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698