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

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

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Variable initialized too early. Created 7 years, 4 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: dart/pkg/path/test/browser_test.dart
diff --git a/dart/pkg/path/test/browser_test.dart b/dart/pkg/path/test/browser_test.dart
index 3e885007caca4b6fbb878e2ffa6e255580c4bbf7..4956e97710710a4865623fefe4ca228d8783688a 100644
--- a/dart/pkg/path/test/browser_test.dart
+++ b/dart/pkg/path/test/browser_test.dart
@@ -12,9 +12,9 @@ main() {
useHtmlConfiguration();
group('new Builder()', () {
- test('uses the current directory if root and style are omitted', () {
+ test('uses window.location.href if root and style are omitted', () {
var builder = new path.Builder();
- expect(builder.root, io.Directory.current.path);
+ expect(builder.root, window.location.href);
});
test('uses "." if root is omitted', () {

Powered by Google App Engine
This is Rietveld 408576698