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

Side by Side Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/analysis/model/ProjectManagerIgnoreListenerTest.java

Issue 587743002: Version 1.7.0-dev.3.2 . (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014, the Dart project authors. 2 * Copyright (c) 2014, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 projectContext = (MockContext) projectManager.getContext(projectContainer); 206 projectContext = (MockContext) projectManager.getContext(projectContainer);
207 appContext = (MockContext) projectManager.getContext(appFolder); 207 appContext = (MockContext) projectManager.getContext(appFolder);
208 assertNotNull(projectContext); 208 assertNotNull(projectContext);
209 assertNotNull(appContext); 209 assertNotNull(appContext);
210 assertNotSame(projectContext, appContext); 210 assertNotSame(projectContext, appContext);
211 211
212 project = projectManager.getProject(projectContainer); 212 project = projectManager.getProject(projectContainer);
213 assertNotNull(project); 213 assertNotNull(project);
214 } 214 }
215 215
216 @Override
217 protected void tearDown() throws Exception {
218 ignoreManager = null;
219 analysisManager = null;
220 markerManager = null;
221 projectManager = null;
222 project = null;
223 projectImpl = null;
224 listener = null;
225 index = null;
226 super.tearDown();
227 }
228
216 private void assertAnalyzed(MockResource res, MockContext context) { 229 private void assertAnalyzed(MockResource res, MockContext context) {
217 MockFile[] allDartAndHtmlFiles; 230 MockFile[] allDartAndHtmlFiles;
218 if (res instanceof MockContainer) { 231 if (res instanceof MockContainer) {
219 MockContainer container = (MockContainer) res; 232 MockContainer container = (MockContainer) res;
220 for (MockFile file : container.getAllDartAndHtmlFiles()) { 233 for (MockFile file : container.getAllDartAndHtmlFiles()) {
221 AnalysisLevel level = AnalysisLevel.ALL; 234 AnalysisLevel level = AnalysisLevel.ALL;
222 if (inPackage(file)) { 235 if (inPackage(file)) {
223 if (inNestedPackage(file)) { 236 if (inNestedPackage(file)) {
224 continue; 237 continue;
225 } 238 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 IContainer parent = file.getParent(); 319 IContainer parent = file.getParent();
307 while (parent != null) { 320 while (parent != null) {
308 if (parent.getName().equals(DartCore.PACKAGES_DIRECTORY_NAME)) { 321 if (parent.getName().equals(DartCore.PACKAGES_DIRECTORY_NAME)) {
309 return true; 322 return true;
310 } 323 }
311 parent = parent.getParent(); 324 parent = parent.getParent();
312 } 325 }
313 return false; 326 return false;
314 } 327 }
315 } 328 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698