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

Side by Side Diff: packages/path/test/io_test.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « packages/path/test/browser_test.dart ('k') | packages/path/test/path_test.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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('vm')
6
5 import 'dart:io' as io; 7 import 'dart:io' as io;
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 main() { 12 main() {
11 group('new Context()', () { 13 group('new Context()', () {
12 test('uses the current directory if root and style are omitted', () { 14 test('uses the current directory if root and style are omitted', () {
13 var context = new path.Context(); 15 var context = new path.Context();
14 expect(context.current, io.Directory.current.path); 16 expect(context.current, io.Directory.current.path);
15 }); 17 });
16 18
17 test('uses "." if root is omitted', () { 19 test('uses "." if root is omitted', () {
(...skipping 29 matching lines...) Expand all
47 io.Directory.current = path.dirname(dir); 49 io.Directory.current = path.dirname(dir);
48 expect(path.normalize(path.absolute('foo/bar')), 50 expect(path.normalize(path.absolute('foo/bar')),
49 equals(path.normalize(path.join(dir, '../foo/bar')))); 51 equals(path.normalize(path.join(dir, '../foo/bar'))));
50 expect(path.normalize(path.absolute('foo/bar')), 52 expect(path.normalize(path.absolute('foo/bar')),
51 equals(path.normalize(path.context.join(dir, '../foo/bar')))); 53 equals(path.normalize(path.context.join(dir, '../foo/bar'))));
52 } finally { 54 } finally {
53 io.Directory.current = dir; 55 io.Directory.current = dir;
54 } 56 }
55 }); 57 });
56 } 58 }
OLDNEW
« no previous file with comments | « packages/path/test/browser_test.dart ('k') | packages/path/test/path_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698