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

Side by Side Diff: pkg/path/test/url_test.dart

Issue 18356011: Rename "pathos" package to "path". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698