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

Side by Side Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/internal/text/dart/DartReconcilingStrategyTest.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) 2013, the Dart project authors. 2 * Copyright (c) 2013, 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 mockContext.setSourceFactory(sourceFactory); 565 mockContext.setSourceFactory(sourceFactory);
566 strategy.setDocument(mockDocument); 566 strategy.setDocument(mockDocument);
567 } 567 }
568 568
569 @Override 569 @Override
570 protected void tearDown() throws Exception { 570 protected void tearDown() throws Exception {
571 // Ensure that strategy removes its AnalysisWorker listener 571 // Ensure that strategy removes its AnalysisWorker listener
572 if (strategy != null) { 572 if (strategy != null) {
573 strategy.dispose(); 573 strategy.dispose();
574 } 574 }
575 mockEditor = null;
576 mockSource = null;
577 mockContext = null;
578 mockDocument = null;
579 analysisManager = null;
580 ignoreManager = null;
581 strategy = null;
575 } 582 }
576 583
577 /** 584 /**
578 * We cannot talk to {@link AnalysisContext} on the UI thread, so we push upda te/analyze requests 585 * We cannot talk to {@link AnalysisContext} on the UI thread, so we push upda te/analyze requests
579 * and execute them in background. But in test we want to wait until these req uests are executed. 586 * and execute them in background. But in test we want to wait until these req uests are executed.
580 */ 587 */
581 private void waitForBackgroundThread() { 588 private void waitForBackgroundThread() {
582 DartUpdateSourceHelper.getInstance().waitForEmptyQueue(); 589 DartUpdateSourceHelper.getInstance().waitForEmptyQueue();
583 } 590 }
584 } 591 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698