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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core_test/src/com/google/dart/tools/debug/core/dartium/BreakpointManagerTest.java

Issue 126303002: Version 1.1.0-dev.5.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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/editor/tools/plugins/com.google.dart.tools.debug.core_test/src/com/google/dart/tools/debug/core/dartium/BreakpointManagerTest.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core_test/src/com/google/dart/tools/debug/core/dartium/BreakpointManagerTest.java (revision 31563)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core_test/src/com/google/dart/tools/debug/core/dartium/BreakpointManagerTest.java (working copy)
@@ -16,6 +16,7 @@
import com.google.dart.engine.source.ExplicitPackageUriResolver;
import com.google.dart.engine.source.ExplicitPackageUriResolverTest;
+import com.google.dart.tools.core.DartCore;
import junit.framework.TestCase;
@@ -44,16 +45,20 @@
}
public void test_getPackagePath() {
- MockBreakpointManager manager = new MockBreakpointManager();
-
- String path = manager.getPackagePath("baz/lib/myLib.dart", null);
- assertNotNull(path);
- assertEquals("foo.bar.baz/myLib.dart", path);
- path = manager.getPackagePath("baz/src/myLib.dart", null);
- assertNull(path);
- path = manager.getPackagePath("bar/baz/lib/util/util.dart", null);
- assertNotNull(path);
- assertEquals("foo.bar.baz/util/util.dart", path);
+ if (!DartCore.isWindows()) {
+ String path = manager.getPackagePath(
+ createFile("/baz/lib/myLib.dart").getAbsolutePath(),
+ null);
+ assertNotNull(path);
+ assertEquals("foo.bar.baz/myLib.dart", path);
+ path = manager.getPackagePath(createFile("/baz/src/myLib.dart").getAbsolutePath(), null);
+ assertNull(path);
+ path = manager.getPackagePath(
+ createFile("/bar/baz/lib/util/util.dart").getAbsolutePath(),
+ null);
+ assertNotNull(path);
+ assertEquals("foo.bar.baz/util/util.dart", path);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698