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

Side by Side Diff: test/url_test.dart

Issue 1132083005: pkg/path: migrate to pkg/test (Closed) Base URL: https://github.com/dart-lang/path.git@master
Patch Set: Created 5 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
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:test/test.dart';
6 import 'package:path/path.dart' as path; 6 import 'package:path/path.dart' as path;
7 7
8 main() { 8 main() {
9 var context = new path.Context( 9 var context = new path.Context(
10 style: path.Style.url, current: 'http://dartlang.org/root/path'); 10 style: path.Style.url, current: 'http://dartlang.org/root/path');
11 11
12 test('separator', () { 12 test('separator', () {
13 expect(context.separator, '/'); 13 expect(context.separator, '/');
14 }); 14 });
15 15
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 756
757 test('with a root-relative URI', () { 757 test('with a root-relative URI', () {
758 expect(context.prettyUri('/a/b'), '/a/b'); 758 expect(context.prettyUri('/a/b'), '/a/b');
759 }); 759 });
760 760
761 test('with a Uri object', () { 761 test('with a Uri object', () {
762 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); 762 expect(context.prettyUri(Uri.parse('a/b')), 'a/b');
763 }); 763 });
764 }); 764 });
765 } 765 }
OLDNEW
« test/posix_test.dart ('K') | « test/relative_test.dart ('k') | test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698