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

Side by Side Diff: test/url_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 import 'package:unittest/unittest.dart'; 5 import 'package:test/test.dart';
6 import 'package:path/path.dart' as path; 6 import 'package:path/path.dart' as path;
7 7
8 main() { 8 main() {
9 var context = new path.Context( 9 var context = new path.Context(
10 style: path.Style.url, current: 'http://dartlang.org/root/path'); 10 style: path.Style.url, current: 'http://dartlang.org/root/path');
11 11
12 test('separator', () { 12 test('separator', () {
13 expect(context.separator, '/'); 13 expect(context.separator, '/');
14 }); 14 });
15 15
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 757
758 test('with a root-relative URI', () { 758 test('with a root-relative URI', () {
759 expect(context.prettyUri('/a/b'), '/a/b'); 759 expect(context.prettyUri('/a/b'), '/a/b');
760 }); 760 });
761 761
762 test('with a Uri object', () { 762 test('with a Uri object', () {
763 expect(context.prettyUri(Uri.parse('a/b')), 'a/b'); 763 expect(context.prettyUri(Uri.parse('a/b')), 'a/b');
764 }); 764 });
765 }); 765 });
766 } 766 }
OLDNEW
« no previous file with comments | « test/relative_test.dart ('k') | test/utils.dart » ('j') | test/windows_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698