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

Unified Diff: pkg/path/test/io_test.dart

Issue 62753005: Refactor pkg/path. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/path/test/browser_test.dart ('k') | pkg/path/test/path_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/path/test/io_test.dart
diff --git a/pkg/path/test/io_test.dart b/pkg/path/test/io_test.dart
index 2d4ac0c51a198285a575e3d058241b47b079f300..3e52bb95ef700a14a220ed904b0cc4ad068c58df 100644
--- a/pkg/path/test/io_test.dart
+++ b/pkg/path/test/io_test.dart
@@ -8,20 +8,20 @@ import 'package:unittest/unittest.dart';
import 'package:path/path.dart' as path;
main() {
- group('new Builder()', () {
+ group('new Context()', () {
test('uses the current directory if root and style are omitted', () {
- var builder = new path.Builder();
- expect(builder.root, io.Directory.current.path);
+ var context = new path.Context();
+ expect(context.current, io.Directory.current.path);
});
test('uses "." if root is omitted', () {
- var builder = new path.Builder(style: path.Style.platform);
- expect(builder.root, ".");
+ var context = new path.Context(style: path.Style.platform);
+ expect(context.current, ".");
});
test('uses the host platform if style is omitted', () {
- var builder = new path.Builder();
- expect(builder.style, path.Style.platform);
+ var context = new path.Context();
+ expect(context.style, path.Style.platform);
});
});
« no previous file with comments | « pkg/path/test/browser_test.dart ('k') | pkg/path/test/path_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698