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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/refactoring/AngularRenameRefactoringTest.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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 } 517 }
518 }.start(); 518 }.start();
519 searchEngine = SearchEngineFactory.createSearchEngine(index); 519 searchEngine = SearchEngineFactory.createSearchEngine(index);
520 // search for something, ensure that Index is running before we will try to stop it 520 // search for something, ensure that Index is running before we will try to stop it
521 searchEngine.searchDeclarations("no-such-name", null, null); 521 searchEngine.searchDeclarations("no-such-name", null, null);
522 } 522 }
523 523
524 @Override 524 @Override
525 protected void tearDown() throws Exception { 525 protected void tearDown() throws Exception {
526 index.stop(); 526 index.stop();
527 index = null;
528 searchEngine = null;
529 refactoring = null;
530 refactoringChange = null;
527 super.tearDown(); 531 super.tearDown();
528 } 532 }
529 533
530 private void assertIndexChangeResult(String expected) throws Exception { 534 private void assertIndexChangeResult(String expected) throws Exception {
531 assertChangeResult(context, refactoringChange, indexSource, expected); 535 assertChangeResult(context, refactoringChange, indexSource, expected);
532 } 536 }
533 537
534 private void assertMainChangeResult(String expected) throws Exception { 538 private void assertMainChangeResult(String expected) throws Exception {
535 assertChangeResult(context, refactoringChange, mainSource, expected); 539 assertChangeResult(context, refactoringChange, mainSource, expected);
536 } 540 }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 619
616 private void prepareRenameChange(Element element, String newName) throws Excep tion { 620 private void prepareRenameChange(Element element, String newName) throws Excep tion {
617 createRenameRefactoring(element); 621 createRenameRefactoring(element);
618 refactoring.setNewName(newName); 622 refactoring.setNewName(newName);
619 // validate status 623 // validate status
620 assertRefactoringStatusOK(refactoring); 624 assertRefactoringStatusOK(refactoring);
621 // prepare result 625 // prepare result
622 refactoringChange = refactoring.createChange(PM); 626 refactoringChange = refactoring.createChange(PM);
623 } 627 }
624 } 628 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698