OLD | NEW |
---|---|
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 4314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4325 ''' | 4325 ''' |
4326 class A { | 4326 class A { |
4327 int myField; | 4327 int myField; |
4328 main() { | 4328 main() { |
4329 print(myField); | 4329 print(myField); |
4330 } | 4330 } |
4331 } | 4331 } |
4332 '''); | 4332 '''); |
4333 } | 4333 } |
4334 | 4334 |
4335 test_undefinedMethod_create_BAD_inSDK() async { | 4335 solo_test_undefinedMethod_create_BAD_inSDK() async { |
Paul Berry
2016/03/04 16:36:07
Un-do this change before committing.
scheglov
2016/03/04 17:15:19
Done.
| |
4336 resolveTestUnit(''' | 4336 resolveTestUnit(''' |
4337 main() { | 4337 main() { |
4338 List.foo(); | 4338 List.foo(); |
4339 } | 4339 } |
4340 '''); | 4340 '''); |
4341 await assertNoFix(DartFixKind.CREATE_METHOD); | 4341 await assertNoFix(DartFixKind.CREATE_METHOD); |
4342 } | 4342 } |
4343 | 4343 |
4344 test_undefinedMethod_create_BAD_targetIsEnum() async { | 4344 test_undefinedMethod_create_BAD_targetIsEnum() async { |
4345 resolveTestUnit(''' | 4345 resolveTestUnit(''' |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5234 @override | 5234 @override |
5235 void t() { } | 5235 void t() { } |
5236 } | 5236 } |
5237 '''); | 5237 '''); |
5238 } | 5238 } |
5239 | 5239 |
5240 void verifyResult(String expectedResult) { | 5240 void verifyResult(String expectedResult) { |
5241 expect(resultCode, expectedResult); | 5241 expect(resultCode, expectedResult); |
5242 } | 5242 } |
5243 } | 5243 } |
OLD | NEW |