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

Unified Diff: pkg/path/test/browser_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/lib/src/style/windows.dart ('k') | pkg/path/test/io_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/path/test/browser_test.dart
diff --git a/pkg/path/test/browser_test.dart b/pkg/path/test/browser_test.dart
index a6e8a68045581c1eeba2d4617e0e705716cd6d4c..d8584a46159352c37d860d726c5d2caf8a81ca0f 100644
--- a/pkg/path/test/browser_test.dart
+++ b/pkg/path/test/browser_test.dart
@@ -11,21 +11,21 @@ import 'package:path/path.dart' as path;
main() {
useHtmlConfiguration();
- group('new Builder()', () {
+ group('new Context()', () {
test('uses the window location if root and style are omitted', () {
- var builder = new path.Builder();
- expect(builder.root,
+ var context = new path.Context();
+ expect(context.current,
Uri.parse(window.location.href).resolve('.').toString());
});
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/lib/src/style/windows.dart ('k') | pkg/path/test/io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698