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

Side by Side Diff: test/posix_test.dart

Issue 1235823009: Upgrade to the new test runner. (Closed) Base URL: git@github.com:dart-lang/path@master
Patch Set: Created 5 years, 5 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 library path.test.posix_test; 5 library path.test.posix_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:test/test.dart';
8 import 'package:path/path.dart' as path; 8 import 'package:path/path.dart' as path;
9 9
10 import 'utils.dart'; 10 import 'utils.dart';
11 11
12 main() { 12 main() {
13 var context = 13 var context =
14 new path.Context(style: path.Style.posix, current: '/root/path'); 14 new path.Context(style: path.Style.posix, current: '/root/path');
15 15
16 test('separator', () { 16 test('separator', () {
17 expect(context.separator, '/'); 17 expect(context.separator, '/');
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 test('with a root-relative URI', () { 530 test('with a root-relative URI', () {
531 expect(context.prettyUri('/a/b'), '/a/b'); 531 expect(context.prettyUri('/a/b'), '/a/b');
532 }); 532 });
533 533
534 test('with a Uri object', () { 534 test('with a Uri object', () {
535 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); 535 expect(context.prettyUri(Uri.parse('a/b')), 'a/b');
536 }); 536 });
537 }); 537 });
538 } 538 }
OLDNEW
« no previous file with comments | « test/path_test.dart ('k') | test/relative_test.dart » ('j') | test/windows_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698