| 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: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 Loading... |
| 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 } |
| OLD | NEW |