| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:analysis_server/protocol/protocol.dart'; | 7 import 'package:analysis_server/protocol/protocol.dart'; |
| 8 import 'package:analysis_server/protocol/protocol_constants.dart'; | 8 import 'package:analysis_server/protocol/protocol_constants.dart'; |
| 9 import 'package:analysis_server/protocol/protocol_generated.dart'; | 9 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| 10 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 225 } |
| 226 class B extends A { | 226 class B extends A { |
| 227 set fff(x) {} // B | 227 set fff(x) {} // B |
| 228 } | 228 } |
| 229 '''); | 229 '''); |
| 230 await prepareOverrides(); | 230 await prepareOverrides(); |
| 231 assertNoOverride('fff(x) {} // B'); | 231 assertNoOverride('fff(x) {} // B'); |
| 232 } | 232 } |
| 233 | 233 |
| 234 test_BAD_privateByPrivate_inDifferentLib() async { | 234 test_BAD_privateByPrivate_inDifferentLib() async { |
| 235 addFile( | 235 addFile('$testFolder/lib.dart', r''' |
| 236 '$testFolder/lib.dart', | |
| 237 r''' | |
| 238 class A { | 236 class A { |
| 239 void _m() {} | 237 void _m() {} |
| 240 } | 238 } |
| 241 '''); | 239 '''); |
| 242 addTestFile(''' | 240 addTestFile(''' |
| 243 import 'lib.dart'; | 241 import 'lib.dart'; |
| 244 class B extends A { | 242 class B extends A { |
| 245 void _m() {} // in B | 243 void _m() {} // in B |
| 246 } | 244 } |
| 247 '''); | 245 '''); |
| (...skipping 322 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 |