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

Side by Side Diff: tests/lib/uri/uri_ipv6_test.dart

Issue 14753005: Enable parsing of IPv6 form addresse (see rfc2373 and rfc2732). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« sdk/lib/uri/uri.dart ('K') | « sdk/lib/uri/uri.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:expect/expect.dart';
6 import 'dart:uri';
7
8
9 void testValidIpv6Uri() {
Søren Gjesse 2013/05/01 07:46:58 Add tests of all examples in RFC2732 http://
Anders Johnsen 2013/05/01 08:07:27 Done.
10 var path = 'http://[::1]:1234/path?query=5#now';
11 var uri = Uri.parse(path);
12 Expect.equals("http", uri.scheme);
13 Expect.equals("::1", uri.domain);
14 Expect.equals(1234, uri.port);
15 Expect.equals("/path", uri.path);
16 Expect.equals("query=5", uri.query);
17 Expect.equals("now", uri.fragment);
18 Expect.equals(path, uri.toString());
19 }
20
21 void main() {
22 testValidIpv6Uri();
23 }
24
OLDNEW
« sdk/lib/uri/uri.dart ('K') | « sdk/lib/uri/uri.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698