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.analysis.notification.overrides; | 5 library test.analysis.notification.overrides; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 9 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
10 import 'package:analysis_server/src/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
11 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
13 | 13 |
14 import '../analysis_abstract.dart'; | 14 import '../analysis_abstract.dart'; |
15 import '../utils.dart'; | |
16 | 15 |
17 main() { | 16 main() { |
18 initializeTestEnvironment(); | |
19 defineReflectiveSuite(() { | 17 defineReflectiveSuite(() { |
20 defineReflectiveTests(AnalysisNotificationOverridesTest); | 18 defineReflectiveTests(AnalysisNotificationOverridesTest); |
21 }); | 19 }); |
22 } | 20 } |
23 | 21 |
24 @reflectiveTest | 22 @reflectiveTest |
25 class AnalysisNotificationOverridesTest extends AbstractAnalysisTest { | 23 class AnalysisNotificationOverridesTest extends AbstractAnalysisTest { |
26 List<Override> overridesList; | 24 List<Override> overridesList; |
27 Override override; | 25 Override override; |
28 | 26 |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 class B extends A { | 568 class B extends A { |
571 set fff(x) {} // in B | 569 set fff(x) {} // in B |
572 } | 570 } |
573 '''); | 571 '''); |
574 await prepareOverrides(); | 572 await prepareOverrides(); |
575 assertHasOverride('fff(x) {} // in B'); | 573 assertHasOverride('fff(x) {} // in B'); |
576 assertHasSuperElement('fff(x) {} // in A'); | 574 assertHasSuperElement('fff(x) {} // in A'); |
577 assertNoInterfaceMembers(); | 575 assertNoInterfaceMembers(); |
578 } | 576 } |
579 } | 577 } |
OLD | NEW |