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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/refactoring/InlineMethodRefactoringImplTest.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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 /** 1344 /**
1345 * Checks that all conditions are <code>OK</code> and applying {@link Change} to the 1345 * Checks that all conditions are <code>OK</code> and applying {@link Change} to the
1346 * {@link #testUnit} is same source as given lines. 1346 * {@link #testUnit} is same source as given lines.
1347 */ 1347 */
1348 protected final void assertSuccessfulRefactoring(String... lines) throws Excep tion { 1348 protected final void assertSuccessfulRefactoring(String... lines) throws Excep tion {
1349 assertRefactoringStatusOK(refactoringStatus); 1349 assertRefactoringStatusOK(refactoringStatus);
1350 Change change = refactoring.createChange(pm); 1350 Change change = refactoring.createChange(pm);
1351 assertTestChangeResult(change, makeSource(lines)); 1351 assertTestChangeResult(change, makeSource(lines));
1352 } 1352 }
1353 1353
1354 @Override
1355 protected void tearDown() throws Exception {
1356 refactoring = null;
1357 refactoringStatus = null;
1358 super.tearDown();
1359 }
1360
1354 // private void assert_fatalError_selection() { 1361 // private void assert_fatalError_selection() {
1355 // assertRefactoringStatus( 1362 // assertRefactoringStatus(
1356 // refactoringStatus, 1363 // refactoringStatus,
1357 // RefactoringStatusSeverity.FATAL, 1364 // RefactoringStatusSeverity.FATAL,
1358 // "Local variable declaration or reference must be selected to activate this refactoring."); 1365 // "Local variable declaration or reference must be selected to activate this refactoring.");
1359 // } 1366 // }
1360 1367
1361 /** 1368 /**
1362 * Creates {@link ExtractLocalRefactoring} in {@link #refactoring}. 1369 * Creates {@link ExtractLocalRefactoring} in {@link #refactoring}.
1363 */ 1370 */
(...skipping 14 matching lines...) Expand all
1378 } 1385 }
1379 1386
1380 /** 1387 /**
1381 * Prints result of {@link #refactoring} in the way ready to parse into test e xpectations. 1388 * Prints result of {@link #refactoring} in the way ready to parse into test e xpectations.
1382 */ 1389 */
1383 @SuppressWarnings("unused") 1390 @SuppressWarnings("unused")
1384 private void printRefactoringResultSource() throws Exception { 1391 private void printRefactoringResultSource() throws Exception {
1385 printRefactoringTestSourceResult(getAnalysisContext(), refactoring); 1392 printRefactoringTestSourceResult(getAnalysisContext(), refactoring);
1386 } 1393 }
1387 } 1394 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698