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

Unified Diff: pkg/analysis_server/test/services/refactoring/inline_local_test.dart

Issue 547343004: Send feedback for the INLINE_LOCAL_VARIABLE refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/test/edit/refactoring_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/refactoring/inline_local_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart
index 6c7d37ee8b62b10a36b7f4e67f1118ee5a726416..336bd66baa0e4eb4f53fadfdbbfab1ac69a8d2ae 100644
--- a/pkg/analysis_server/test/services/refactoring/inline_local_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/inline_local_test.dart
@@ -194,6 +194,7 @@ main() {
expect(refactoring.refactoringName, 'Inline Local Variable');
// check initial conditions and access
return refactoring.checkInitialConditions().then((_) {
+ expect(refactoring.variableName, 'test');
expect(refactoring.referenceCount, 2);
});
}
@@ -278,6 +279,8 @@ main() {
}
void _assert_fatalError_selection(RefactoringStatus status) {
+ expect(refactoring.variableName, isNull);
+ expect(refactoring.referenceCount, 0);
assertRefactoringStatus(
status,
RefactoringProblemSeverity.FATAL,
« no previous file with comments | « pkg/analysis_server/test/edit/refactoring_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698