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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/LibraryTest.java

Issue 595513003: Version 1.7.0-dev.3.3 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 3 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.engine_test/src/com/google/dart/engine/internal/resolver/LibraryTest.java
===================================================================
--- editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/LibraryTest.java (revision 40542)
+++ editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/resolver/LibraryTest.java (working copy)
@@ -46,11 +46,6 @@
*/
private Library library;
- /*
- * In order to keep the tests fast there are no tests for getAST(Source),
- * getCompilationUnitSources(), getDefiningCompilationUnit()
- */
-
@Override
public void setUp() {
sourceFactory = new SourceFactory(new FileUriResolver());
@@ -60,6 +55,11 @@
library = createLibrary("/lib.dart");
}
+ /*
+ * In order to keep the tests fast there are no tests for getAST(Source),
+ * getCompilationUnitSources(), getDefiningCompilationUnit()
+ */
+
public void test_getExplicitlyImportsCore() {
assertFalse(library.getExplicitlyImportsCore());
errorListener.assertNoErrors();
@@ -124,6 +124,15 @@
assertSame(element, library.getLibraryElement());
}
+ @Override
+ protected void tearDown() throws Exception {
+ errorListener = null;
+ sourceFactory = null;
+ analysisContext = null;
+ library = null;
+ super.tearDown();
+ }
+
private Library createLibrary(String definingCompilationUnitPath) {
return new Library(analysisContext, errorListener, new FileBasedSource(
createFile(definingCompilationUnitPath)));

Powered by Google App Engine
This is Rietveld 408576698