| commit | a2d024c886793ceefe878b004b7e32027b3c1ddf | [log] [tgz] |
|---|---|---|
| author | lrn@google.com <lrn@google.com> | Thu Jun 19 09:05:07 2014 +0000 |
| committer | lrn@google.com <lrn@google.com> | Thu Jun 19 09:05:07 2014 +0000 |
| tree | 1c3a05aa1ca2d50ca8c3f7dcbd5b452b332be64f | |
| parent | 5ac0ce86f69ddc8389cc368d420c659e8ddcde38 [diff] |
New Uri.parse and validation. Ensures that the resulting URI is valid. Escapes invalid characters except the gen-delim group of delimites, where escapes are allowed. R=ajohnsen@google.com, sgjesse@google.com Review URL: https://codereview.chromium.org//335373003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/json_rpc_2@37479 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/json_rpc_2/test/server/parameters_test.dart b/pkgs/json_rpc_2/test/server/parameters_test.dart index 49e4573..64fe232 100644 --- a/pkgs/json_rpc_2/test/server/parameters_test.dart +++ b/pkgs/json_rpc_2/test/server/parameters_test.dart
@@ -262,7 +262,9 @@ 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", () {