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 @TestOn('posix && vm') | |
nweiz
2015/05/13 18:06:31
"&& vm" is unnecessary here. All the OS selectors
nweiz
2015/05/13 18:07:28
Oh, sorry, I wasn't thinking: this test isn't OS-d
| |
6 | |
5 library path.test.posix_test; | 7 library path.test.posix_test; |
6 | 8 |
7 import 'package:unittest/unittest.dart'; | 9 import 'package:test/test.dart'; |
8 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
9 | 11 |
10 import 'utils.dart'; | 12 import 'utils.dart'; |
11 | 13 |
12 main() { | 14 main() { |
13 var context = | 15 var context = |
14 new path.Context(style: path.Style.posix, current: '/root/path'); | 16 new path.Context(style: path.Style.posix, current: '/root/path'); |
15 | 17 |
16 test('separator', () { | 18 test('separator', () { |
17 expect(context.separator, '/'); | 19 expect(context.separator, '/'); |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
528 | 530 |
529 test('with a root-relative URI', () { | 531 test('with a root-relative URI', () { |
530 expect(context.prettyUri('/a/b'), '/a/b'); | 532 expect(context.prettyUri('/a/b'), '/a/b'); |
531 }); | 533 }); |
532 | 534 |
533 test('with a Uri object', () { | 535 test('with a Uri object', () { |
534 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); | 536 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); |
535 }); | 537 }); |
536 }); | 538 }); |
537 } | 539 } |
OLD | NEW |