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

Unified Diff: tests/language/map_literal1_test.dart

Issue 23691029: Update language.status and rewrite some tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review commetns Created 7 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
« no previous file with comments | « tests/language/map_literal1_negative_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/map_literal1_test.dart
diff --git a/tests/language/map_literal1_negative_test.dart b/tests/language/map_literal1_test.dart
similarity index 71%
rename from tests/language/map_literal1_negative_test.dart
rename to tests/language/map_literal1_test.dart
index 43da66a004d6ab2e52314309857ad2d717a5a988..af751299f5781500e95aacbeb73c66eec8f082a5 100644
--- a/tests/language/map_literal1_negative_test.dart
+++ b/tests/language/map_literal1_test.dart
@@ -6,11 +6,9 @@
// When type checks are enabled, a type mismatch in a map literal is a compile-time error
main() {
- try {
- var m = const <String, String>{"a": 0}; // 0 is not a String.
- } on TypeError catch (error) {
- // not a catchable error
- }
+ var m = const
+ <String, String> /// 01: compile-time error
+ {"a": 0};
}
« no previous file with comments | « tests/language/map_literal1_negative_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698