Chromium Code Reviews

Unified Diff: pkg/json_rpc_2/test/server/parameters_test.dart

Issue 321543003: New, more validating, parser for URI. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: One more test. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | runtime/bin/builtin.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/json_rpc_2/test/server/parameters_test.dart
diff --git a/pkg/json_rpc_2/test/server/parameters_test.dart b/pkg/json_rpc_2/test/server/parameters_test.dart
index 49e457355d084a1e0466bb72718cf5cacb5a50be..4afe0724c0031f161274b99d3c3c0332a83d3dbc 100644
--- a/pkg/json_rpc_2/test/server/parameters_test.dart
+++ b/pkg/json_rpc_2/test/server/parameters_test.dart
@@ -262,7 +262,9 @@ void main() {
expect(() => parameters['invalid-uri'].asUri,
throwsInvalidParams('Parameter "invalid-uri" for method "foo" must '
'be a valid URI, but was "http://[::1".\n'
- 'Bad end of IPv6 host'));
+ 'Unmatched [ in host name at position 7.\n'
+ 'http://[::1\n'
+ ' ^'));
});
group("with a nested parameter map", () {
« no previous file with comments | « no previous file | runtime/bin/builtin.dart » ('j') | no next file with comments »

Powered by Google App Engine