| 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:analyzer_plugin/protocol/protocol_common.dart'; | 10 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 264 } |
| 265 class C extends A { | 265 class C extends A { |
| 266 m() {} | 266 m() {} |
| 267 } | 267 } |
| 268 '''); | 268 '''); |
| 269 await prepareImplementedElements(); | 269 await prepareImplementedElements(); |
| 270 assertHasImplementedMember('m() {} // A'); | 270 assertHasImplementedMember('m() {} // A'); |
| 271 } | 271 } |
| 272 | 272 |
| 273 test_method_withMethod_private_differentLib() async { | 273 test_method_withMethod_private_differentLib() async { |
| 274 addFile( | 274 addFile('$testFolder/lib.dart', r''' |
| 275 '$testFolder/lib.dart', | |
| 276 r''' | |
| 277 import 'test.dart'; | 275 import 'test.dart'; |
| 278 class B extends A { | 276 class B extends A { |
| 279 void _m() {} | 277 void _m() {} |
| 280 } | 278 } |
| 281 '''); | 279 '''); |
| 282 addTestFile(''' | 280 addTestFile(''' |
| 283 class A { | 281 class A { |
| 284 _m() {} // A | 282 _m() {} // A |
| 285 } | 283 } |
| 286 '''); | 284 '''); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 if (times == 0 || implementedClasses != null) { | 422 if (times == 0 || implementedClasses != null) { |
| 425 return new Future.value(); | 423 return new Future.value(); |
| 426 } | 424 } |
| 427 return new Future.delayed( | 425 return new Future.delayed( |
| 428 new Duration(milliseconds: 1), () => waitForNotification(times - 1)); | 426 new Duration(milliseconds: 1), () => waitForNotification(times - 1)); |
| 429 } | 427 } |
| 430 | 428 |
| 431 return waitForNotification(30000); | 429 return waitForNotification(30000); |
| 432 } | 430 } |
| 433 } | 431 } |
| OLD | NEW |