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

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

Issue 10377181: add support for package: to the editor (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 7 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
===================================================================
--- compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java (revision 7713)
+++ compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler;
@@ -47,7 +47,7 @@
public void testTranslate1() throws Exception {
URI shortUri = new URI("dart:core");
URI fullUri = systemLibraryManager.expandRelativeDartUri(shortUri);
- URI translatedURI = systemLibraryManager.translateDartUri(fullUri);
+ URI translatedURI = systemLibraryManager.resolveDartUri(fullUri);
assertNotNull(translatedURI);
String scheme = translatedURI.getScheme();
assertTrue(scheme.equals("file"));
@@ -57,7 +57,7 @@
public void testTranslate2() throws Exception {
URI shortUri = new URI("dart:coreimpl");
URI fullUri = systemLibraryManager.expandRelativeDartUri(shortUri);
- URI translatedURI = systemLibraryManager.translateDartUri(fullUri);
+ URI translatedURI = systemLibraryManager.resolveDartUri(fullUri);
assertNotNull(translatedURI);
String scheme = translatedURI.getScheme();
assertTrue(scheme.equals("file"));
@@ -67,7 +67,7 @@
public void testTranslate3() throws Exception {
URI fullUri = new URI("dart://doesnotexist/some/file.dart");
try {
- URI translatedURI = systemLibraryManager.translateDartUri(fullUri);
+ URI translatedURI = systemLibraryManager.resolveDartUri(fullUri);
fail("Expected translate " + fullUri + " to fail, but returned " + translatedURI);
} catch (RuntimeException e) {
String message = e.getMessage();

Powered by Google App Engine
This is Rietveld 408576698