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

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

Issue 2903523003: Switch server tests to strong mode. (Closed)
Patch Set: Created 3 years, 7 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; 7 import 'package:analysis_server/plugin/edit/assist/assist_core.dart';
8 import 'package:analysis_server/plugin/edit/assist/assist_dart.dart'; 8 import 'package:analysis_server/plugin/edit/assist/assist_dart.dart';
9 import 'package:analysis_server/src/plugin/server_plugin.dart'; 9 import 'package:analysis_server/src/plugin/server_plugin.dart';
10 import 'package:analysis_server/src/services/correction/assist.dart'; 10 import 'package:analysis_server/src/services/correction/assist.dart';
(...skipping 3810 matching lines...) Expand 10 before | Expand all | Expand 10 after
3821 '''); 3821 ''');
3822 await assertHasAssistAt( 3822 await assertHasAssistAt(
3823 'int ', 3823 'int ',
3824 DartAssistKind.REMOVE_TYPE_ANNOTATION, 3824 DartAssistKind.REMOVE_TYPE_ANNOTATION,
3825 ''' 3825 '''
3826 final V = 1; 3826 final V = 1;
3827 '''); 3827 ''');
3828 } 3828 }
3829 3829
3830 test_reparentFlutterList_BAD_multiLine() async { 3830 test_reparentFlutterList_BAD_multiLine() async {
3831 verifyNoTestUnitErrors = false;
3831 _configureFlutterPkg({ 3832 _configureFlutterPkg({
3832 'src/widgets/framework.dart': flutter_framework_code, 3833 'src/widgets/framework.dart': flutter_framework_code,
3833 }); 3834 });
3834 await resolveTestUnit(''' 3835 await resolveTestUnit('''
3835 import 'package:flutter/src/widgets/framework.dart'; 3836 import 'package:flutter/src/widgets/framework.dart';
3836 build() { 3837 build() {
3837 return new Container( 3838 return new Container(
3838 child: new Row( 3839 child: new Row(
3839 children: [/*caret*/ 3840 children: [/*caret*/
3840 // start 3841 // start
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
4766 4767
4767 @override 4768 @override
4768 final AstProvider astProvider; 4769 final AstProvider astProvider;
4769 4770
4770 @override 4771 @override
4771 final CompilationUnit unit; 4772 final CompilationUnit unit;
4772 4773
4773 _DartAssistContextForValues(this.source, this.selectionOffset, 4774 _DartAssistContextForValues(this.source, this.selectionOffset,
4774 this.selectionLength, this.analysisDriver, this.astProvider, this.unit); 4775 this.selectionLength, this.analysisDriver, this.astProvider, this.unit);
4775 } 4776 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698