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

Side by Side Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 2781963002: Fix for Quick Fix to import SDK classes. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.correction.fix; 5 library test.services.correction.fix;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
10 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart'; 10 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart';
(...skipping 5672 matching lines...) Expand 10 before | Expand all | Expand 10 after
5683 pathToCode.keys 5683 pathToCode.keys
5684 .map((path) => "import 'package:flutter/$path';") 5684 .map((path) => "import 'package:flutter/$path';")
5685 .join('\n')); 5685 .join('\n'));
5686 } 5686 }
5687 } 5687 }
5688 5688
5689 @reflectiveTest 5689 @reflectiveTest
5690 class FixProcessorTest_Driver extends FixProcessorTest { 5690 class FixProcessorTest_Driver extends FixProcessorTest {
5691 @override 5691 @override
5692 bool get enableNewAnalysisDriver => true; 5692 bool get enableNewAnalysisDriver => true;
5693
5694 @failingTest
5695 @override
5696 test_importLibrarySdk_withClass_AsExpression() {
5697 return super.test_importLibrarySdk_withClass_AsExpression();
5698 }
5699
5700 @failingTest
5701 @override
5702 test_importLibrarySdk_withClass_invocationTarget() {
5703 return super.test_importLibrarySdk_withClass_invocationTarget();
5704 }
5705
5706 @failingTest
5707 @override
5708 test_importLibrarySdk_withClass_IsExpression() {
5709 return super.test_importLibrarySdk_withClass_IsExpression();
5710 }
5711
5712 @failingTest
5713 @override
5714 test_importLibrarySdk_withClass_itemOfList() {
5715 return super.test_importLibrarySdk_withClass_itemOfList();
5716 }
5717
5718 @failingTest
5719 @override
5720 test_importLibrarySdk_withClass_itemOfList_inAnnotation() {
5721 return super.test_importLibrarySdk_withClass_itemOfList_inAnnotation();
5722 }
5723
5724 @failingTest
5725 @override
5726 test_importLibrarySdk_withClass_typeAnnotation() {
5727 return super.test_importLibrarySdk_withClass_typeAnnotation();
5728 }
5729
5730 @failingTest
5731 @override
5732 test_importLibrarySdk_withClass_typeAnnotation_PrefixedIdentifier() {
5733 return super
5734 .test_importLibrarySdk_withClass_typeAnnotation_PrefixedIdentifier();
5735 }
5736
5737 @failingTest
5738 @override
5739 test_importLibrarySdk_withClass_typeArgument() {
5740 return super.test_importLibrarySdk_withClass_typeArgument();
5741 }
5742
5743 @failingTest
5744 @override
5745 test_importLibrarySdk_withTopLevelVariable() {
5746 return super.test_importLibrarySdk_withTopLevelVariable();
5747 }
5748
5749 @failingTest
5750 @override
5751 test_importLibrarySdk_withTopLevelVariable_annotation() {
5752 return super.test_importLibrarySdk_withTopLevelVariable_annotation();
5753 }
5754 } 5693 }
5755 5694
5756 @reflectiveTest 5695 @reflectiveTest
5757 class LintFixTest extends BaseFixProcessorTest { 5696 class LintFixTest extends BaseFixProcessorTest {
5758 AnalysisError error; 5697 AnalysisError error;
5759 5698
5760 Future applyFix(FixKind kind) async { 5699 Future applyFix(FixKind kind) async {
5761 fix = await _assertHasFix(kind, error); 5700 fix = await _assertHasFix(kind, error);
5762 change = fix.change; 5701 change = fix.change;
5763 // apply to "file" 5702 // apply to "file"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
6002 5941
6003 @override 5942 @override
6004 final CompilationUnit unit; 5943 final CompilationUnit unit;
6005 5944
6006 @override 5945 @override
6007 final AnalysisError error; 5946 final AnalysisError error;
6008 5947
6009 _DartFixContextImpl(this.resourceProvider, this.getTopLevelDeclarations, 5948 _DartFixContextImpl(this.resourceProvider, this.getTopLevelDeclarations,
6010 this.analysisContext, this.astProvider, this.unit, this.error); 5949 this.analysisContext, this.astProvider, this.unit, this.error);
6011 } 5950 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698