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

Unified Diff: tests/lib/convert/json_test.dart

Issue 391003005: Update test expectation for Safari to account for JSON.parse bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/convert/json_test.dart
diff --git a/tests/lib/convert/json_test.dart b/tests/lib/convert/json_test.dart
index e1bc6b29776ed97277c1c09f3aef48392a5348e7..0cf304897263aa76bb5f2a55a6fe9e7f3e8eb692 100644
--- a/tests/lib/convert/json_test.dart
+++ b/tests/lib/convert/json_test.dart
@@ -82,10 +82,7 @@ testNumbers() {
for (var fraction in fractionList) {
for (var exp in exponentList) {
var literal = "$sign$integer$fraction$exp";
- var parseNumber =
- ((fraction == "" && exp == "") ? (String x) => int.parse(x)
- : (String x) => double.parse(x));
- var expectedValue = parseNumber(literal);
+ var expectedValue = num.parse(literal);
testJson(literal, expectedValue);
}
}
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698