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

Unified Diff: tests/corelib/string_source_test.dart

Issue 52353002: Fix test to not assume that JSON.decode returns dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/string_source_test.dart
diff --git a/tests/corelib/string_source_test.dart b/tests/corelib/string_source_test.dart
index bf91390b1a0d9d19e057019822bcbbf843a6ee4b..adf05544d341d42e927751db387eb69ac7ca787d 100644
--- a/tests/corelib/string_source_test.dart
+++ b/tests/corelib/string_source_test.dart
@@ -24,7 +24,7 @@ main() {
..writeCharCode(0xdc12)).toString(),
(new StringBuffer()..writeCharCode(0x10412)).toString(),
JSON.decode('"\u{10412}"'),
- JSON.decode('{"\u{10412}":[]}').keys.first
+ (JSON.decode('{"\u{10412}":[]}') as Map).keys.first
];
for (String string in strings) {
Expect.equals(base.length, string.length);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698