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('windows && vm') |
| 6 |
5 library path.test.windows_test; | 7 library path.test.windows_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.windows, current: r'C:\root\path'); | 16 new path.Context(style: path.Style.windows, current: r'C:\root\path'); |
15 | 17 |
16 group('separator', () { | 18 group('separator', () { |
17 expect(context.separator, '\\'); | 19 expect(context.separator, '\\'); |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 | 668 |
667 test('with a root-relative URI', () { | 669 test('with a root-relative URI', () { |
668 expect(context.prettyUri('/D:/a/b'), r'D:\a\b'); | 670 expect(context.prettyUri('/D:/a/b'), r'D:\a\b'); |
669 }); | 671 }); |
670 | 672 |
671 test('with a Uri object', () { | 673 test('with a Uri object', () { |
672 expect(context.prettyUri(Uri.parse('a/b')), r'a\b'); | 674 expect(context.prettyUri(Uri.parse('a/b')), r'a\b'); |
673 }); | 675 }); |
674 }); | 676 }); |
675 } | 677 } |
OLD | NEW |