OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:unittest/unittest.dart'; | 5 import 'package:unittest/unittest.dart'; |
6 import 'package:pathos/path.dart' as path; | 6 import 'package:path/path.dart' as path; |
7 | 7 |
8 main() { | 8 main() { |
9 var builder = new path.Builder(style: path.Style.url, | 9 var builder = new path.Builder(style: path.Style.url, |
10 root: 'http://dartlang.org/root/path'); | 10 root: 'http://dartlang.org/root/path'); |
11 | 11 |
12 test('separator', () { | 12 test('separator', () { |
13 expect(builder.separator, '/'); | 13 expect(builder.separator, '/'); |
14 }); | 14 }); |
15 | 15 |
16 test('extension', () { | 16 test('extension', () { |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 Uri.parse('http://dartlang.org/path/to/foo')); | 644 Uri.parse('http://dartlang.org/path/to/foo')); |
645 expect(builder.toUri('http://dartlang.org/path/to/foo/'), | 645 expect(builder.toUri('http://dartlang.org/path/to/foo/'), |
646 Uri.parse('http://dartlang.org/path/to/foo/')); | 646 Uri.parse('http://dartlang.org/path/to/foo/')); |
647 expect(builder.toUri('file:///path/to/foo'), | 647 expect(builder.toUri('file:///path/to/foo'), |
648 Uri.parse('file:///path/to/foo')); | 648 Uri.parse('file:///path/to/foo')); |
649 expect(builder.toUri('foo/bar'), Uri.parse('foo/bar')); | 649 expect(builder.toUri('foo/bar'), Uri.parse('foo/bar')); |
650 expect(builder.toUri('http://dartlang.org/path/to/foo%23bar'), | 650 expect(builder.toUri('http://dartlang.org/path/to/foo%23bar'), |
651 Uri.parse('http://dartlang.org/path/to/foo%23bar')); | 651 Uri.parse('http://dartlang.org/path/to/foo%23bar')); |
652 }); | 652 }); |
653 } | 653 } |
OLD | NEW |