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

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

Issue 20204003: First stab at a dev server in pub using barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/path/test/browser_test.dart
diff --git a/pkg/path/test/browser_test.dart b/pkg/path/test/browser_test.dart
index 2a830c75f7e3a034209f51d3a40a100f541a5233..3e885007caca4b6fbb878e2ffa6e255580c4bbf7 100644
--- a/pkg/path/test/browser_test.dart
+++ b/pkg/path/test/browser_test.dart
@@ -12,17 +12,26 @@ main() {
useHtmlConfiguration();
group('new Builder()', () {
- test('uses the current working directory if root is omitted', () {
+ test('uses the current directory if root and style are omitted', () {
var builder = new path.Builder();
- expect(builder.root, window.location.href);
+ expect(builder.root, io.Directory.current.path);
});
- test('uses URL if style is omitted', () {
+ test('uses "." if root is omitted', () {
+ var builder = new path.Builder(style: path.Style.platform);
+ expect(builder.root, ".");
+ });
+
+ test('uses the host platform if style is omitted', () {
var builder = new path.Builder();
- expect(builder.style, path.Style.url);
+ expect(builder.style, path.Style.platform);
});
});
+ test('Style.platform is url', () {
+ expect(path.Style.platform, path.Style.url);
+ });
+
test('current', () {
expect(path.current, window.location.href);
});

Powered by Google App Engine
This is Rietveld 408576698