| 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)));
|
|
|