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

Unified Diff: compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java

Issue 9860009: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated 'configs' to be 'config' directory, updated addLib() to throw exception Created 8 years, 9 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: compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java b/compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java
index 10f4d6c8061e50c075476a18e885221ce79512bd..1f3e495a1e5054d5d154b860edb2c8d37211fe0a 100644
--- a/compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java
@@ -16,7 +16,7 @@ public class SystemLibraryManagerTest extends TestCase {
assertNotNull(fullUri);
assertEquals("dart", fullUri.getScheme());
assertEquals("core", fullUri.getHost());
- assertTrue(getPath(fullUri).endsWith("/corelib.dart"));
+ assertTrue(getPath(fullUri).endsWith("/core_runtime.dart"));
}
public void testExpand2() throws Exception {
@@ -24,8 +24,8 @@ public class SystemLibraryManagerTest extends TestCase {
URI fullUri = systemLibraryManager.expandRelativeDartUri(shortUri);
assertNotNull(fullUri);
assertEquals("dart", fullUri.getScheme());
- assertEquals("core", fullUri.getHost());
- assertTrue(getPath(fullUri).endsWith("/corelib_impl.dart"));
+ assertEquals("coreimpl", fullUri.getHost());
+ assertTrue(getPath(fullUri).endsWith("/coreimpl_runtime.dart"));
}
public void testExpand3() throws Exception {
@@ -34,8 +34,8 @@ public class SystemLibraryManagerTest extends TestCase {
URI fullUri2 = systemLibraryManager.expandRelativeDartUri(fullUri1);
assertNotNull(fullUri2);
assertEquals("dart", fullUri2.getScheme());
- assertEquals("core", fullUri2.getHost());
- assertTrue(getPath(fullUri2).endsWith("/corelib_impl.dart"));
+ assertEquals("coreimpl", fullUri2.getHost());
+ assertTrue(getPath(fullUri2).endsWith("/coreimpl_runtime.dart"));
}
public void testExpand4() throws Exception {
@@ -50,8 +50,8 @@ public class SystemLibraryManagerTest extends TestCase {
URI translatedURI = systemLibraryManager.translateDartUri(fullUri);
assertNotNull(translatedURI);
String scheme = translatedURI.getScheme();
- assertTrue(scheme.equals("file") || scheme.equals("jar"));
- assertTrue(getPath(translatedURI).endsWith("/corelib.dart"));
+ assertTrue(scheme.equals("file"));
+ assertTrue(getPath(translatedURI).endsWith("/core_runtime.dart"));
}
public void testTranslate2() throws Exception {
@@ -60,8 +60,8 @@ public class SystemLibraryManagerTest extends TestCase {
URI translatedURI = systemLibraryManager.translateDartUri(fullUri);
assertNotNull(translatedURI);
String scheme = translatedURI.getScheme();
- assertTrue(scheme.equals("file") || scheme.equals("jar"));
- assertTrue(getPath(translatedURI).endsWith("/corelib_impl.dart"));
+ assertTrue(scheme.equals("file"));
+ assertTrue(getPath(translatedURI).endsWith("/coreimpl_runtime.dart"));
}
public void testTranslate3() throws Exception {

Powered by Google App Engine
This is Rietveld 408576698