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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartModelManagerTest.java

Issue 9149008: Fixes for parsing warnigs, issue 1060. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartModelManagerTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartModelManagerTest.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartModelManagerTest.java
index faba8bda10bf35a8d5c819de98a6154467cb80e5..97d20cb6a62c26af731283ce2c403da31ee9b4d0 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartModelManagerTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/DartModelManagerTest.java
@@ -60,7 +60,8 @@ public class DartModelManagerTest extends TestCase {
public void test_DartModelManager_getBaseLibraryName_directive() throws Exception {
String libraryName = "library";
- DartUnit unit = new DartUnit(new TestDartSource("test.dart", "#library('" + libraryName + "')"));
+ DartUnit unit =
+ new DartUnit(new TestDartSource("test.dart", "#library('" + libraryName + "')"), false);
unit.addDirective(new DartLibraryDirective(DartStringLiteral.get(libraryName)));
String result = getBaseLibraryName(unit);
assertEquals(libraryName, result);
@@ -68,7 +69,7 @@ public class DartModelManagerTest extends TestCase {
public void test_DartModelManager_getBaseLibraryName_noDirective() throws Exception {
String baseFileName = "test";
- DartUnit unit = new DartUnit(new TestDartSource(baseFileName + ".dart", ""));
+ DartUnit unit = new DartUnit(new TestDartSource(baseFileName + ".dart", ""), false);
String result = getBaseLibraryName(unit);
assertEquals(baseFileName, result);
}
@@ -97,7 +98,7 @@ public class DartModelManagerTest extends TestCase {
File libraryFile = new File(tempDirectory, libraryFileName);
String secondFileName = "source.dart";
String thirdFileName = "unique.dart";
- DartUnit libraryUnit = new DartUnit(new TestDartSource(libraryFileName, ""));
+ DartUnit libraryUnit = new DartUnit(new TestDartSource(libraryFileName, ""), false);
libraryUnit.addDirective(new DartSourceDirective(DartStringLiteral.get(libraryFileName)));
libraryUnit.addDirective(new DartSourceDirective(DartStringLiteral.get(secondFileName)));
libraryUnit.addDirective(new DartSourceDirective(DartStringLiteral.get(secondFileName)));
@@ -118,7 +119,8 @@ public class DartModelManagerTest extends TestCase {
public void test_DartModelManager_getLibraryName_directive() throws Exception {
String libraryName = "library";
- DartUnit unit = new DartUnit(new TestDartSource("test.dart", "#library('" + libraryName + "')"));
+ DartUnit unit =
+ new DartUnit(new TestDartSource("test.dart", "#library('" + libraryName + "')"), false);
unit.addDirective(new DartLibraryDirective(DartStringLiteral.get(libraryName)));
String result = getLibraryName(unit);
assertEquals(libraryName, result);
@@ -126,7 +128,7 @@ public class DartModelManagerTest extends TestCase {
public void test_DartModelManager_getLibraryName_noDirective() throws Exception {
String baseFileName = "test";
- DartUnit unit = new DartUnit(new TestDartSource(baseFileName + ".dart", ""));
+ DartUnit unit = new DartUnit(new TestDartSource(baseFileName + ".dart", ""), false);
String result = getLibraryName(unit);
assertEquals(baseFileName, result);
}

Powered by Google App Engine
This is Rietveld 408576698