| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 | 757 |
| 758 test('with a root-relative URI', () { | 758 test('with a root-relative URI', () { |
| 759 expect(context.prettyUri('/a/b'), '/a/b'); | 759 expect(context.prettyUri('/a/b'), '/a/b'); |
| 760 }); | 760 }); |
| 761 | 761 |
| 762 test('with a Uri object', () { | 762 test('with a Uri object', () { |
| 763 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); | 763 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); |
| 764 }); | 764 }); |
| 765 }); | 765 }); |
| 766 } | 766 } |
| OLD | NEW |