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

Unified Diff: pkg/path/test/path_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/io_test.dart ('k') | pkg/path/test/posix_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/path/test/path_test.dart
diff --git a/pkg/path/test/path_test.dart b/pkg/path/test/path_test.dart
index d6c2f3493cfdf8fabfe3fdae104679b05c0073b1..19397cf8d3c86e9cc88199812f29f8566b99b464 100644
--- a/pkg/path/test/path_test.dart
+++ b/pkg/path/test/path_test.dart
@@ -23,30 +23,30 @@ main() {
});
});
- group('new Builder()', () {
- test('uses the given root directory', () {
- var builder = new path.Builder(root: '/a/b/c');
- expect(builder.root, '/a/b/c');
+ group('new Context()', () {
+ test('uses the given current directory', () {
+ var context = new path.Context(current: '/a/b/c');
+ expect(context.current, '/a/b/c');
});
test('uses the given style', () {
- var builder = new path.Builder(style: path.Style.windows);
- expect(builder.style, path.Style.windows);
+ var context = new path.Context(style: path.Style.windows);
+ expect(context.style, path.Style.windows);
});
});
- test('posix is a default Builder for the POSIX style', () {
+ test('posix is a default Context for the POSIX style', () {
expect(path.posix.style, path.Style.posix);
- expect(path.posix.root, ".");
+ expect(path.posix.current, ".");
});
- test('windows is a default Builder for the Windows style', () {
+ test('windows is a default Context for the Windows style', () {
expect(path.windows.style, path.Style.windows);
- expect(path.windows.root, ".");
+ expect(path.windows.current, ".");
});
- test('url is a default Builder for the URL style', () {
+ test('url is a default Context for the URL style', () {
expect(path.url.style, path.Style.url);
- expect(path.url.root, ".");
+ expect(path.url.current, ".");
});
}
« no previous file with comments | « pkg/path/test/io_test.dart ('k') | pkg/path/test/posix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698