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

Unified Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 1053723002: Fix a null-pointer reference and minor clean-up (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added tests Created 5 years, 9 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/lib/src/services/correction/fix_internal.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/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 1136a5e828e297573c22beb8e4ee914633acfc9d..65892205fb70e123f4289e5dcfcf47fd23aae8c3 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -421,6 +421,22 @@ main() {
_assertLinkedGroup(change.linkedEditGroups[0], ['named(int ', 'named(1']);
}
+ void test_createConstructorForFinalFields_inTopLevelMethod() {
+ resolveTestUnit('''
+main() {
+ final int v;
+}
+''');
+ assertNoFix(FixKind.CREATE_CONSTRUCTOR_FOR_FINAL_FIELDS);
+ }
+
+ void test_createConstructorForFinalFields_topLevelField() {
+ resolveTestUnit('''
+final int v;
+''');
+ assertNoFix(FixKind.CREATE_CONSTRUCTOR_FOR_FINAL_FIELDS);
+ }
+
void test_createConstructorSuperExplicit() {
resolveTestUnit('''
class A {
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698