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

Side by Side Diff: test/posix_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
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('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
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 }
OLDNEW
« pubspec.yaml ('K') | « test/path_test.dart ('k') | test/relative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698