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

Unified Diff: tests/utils/src/JsonTest.dart

Issue 10243002: Relax JSON test to support other targets then the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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/utils/src/JsonTest.dart
diff --git a/tests/utils/src/JsonTest.dart b/tests/utils/src/JsonTest.dart
index f45d1f4508664c886acb6362e30138d2e3259dc7..cadf7944d949b86a1e1c1b986565bfab5a270392 100644
--- a/tests/utils/src/JsonTest.dart
+++ b/tests/utils/src/JsonTest.dart
@@ -42,7 +42,9 @@ void testParse() {
void testParseInvalid() {
void testString(String s) {
- Expect.throws(() => JSON.parse(s), (e) => e is JSONParseException);
+ // TODO(ajohnsen): Require JSONParseException exception once all JSON libs
+ // have been updated.
+ Expect.throws(() => JSON.parse(s));
}
testString("");
testString("3.a");
« 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