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

Side by Side Diff: test/windows_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
« test/posix_test.dart ('K') | « test/utils.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 @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
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 }
OLDNEW
« test/posix_test.dart ('K') | « test/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698