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

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

Issue 335373003: New Uri.parse and validation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Completed merge, updated tests. Created 6 years, 6 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 | sdk/lib/core/uri.dart » ('j') | sdk/lib/core/uri.dart » ('J')
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..64fe23260e75899dc13b6e2c2dd50b7a650e58d0 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'));
+ 'Missing end `]` to match `[` in host at position 7.\n'
+ 'http://[::1\n'
+ ' ^'));
});
group("with a nested parameter map", () {
« no previous file with comments | « no previous file | sdk/lib/core/uri.dart » ('j') | sdk/lib/core/uri.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698