| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:html'; | 5 import 'dart:html'; |
| 5 import 'package:unittest/unittest.dart'; | 6 import 'package:unittest/unittest.dart'; |
| 6 import 'package:observatory/src/elements/nav/notify.dart'; | 7 import 'package:observatory/src/elements/nav/notify.dart'; |
| 7 import 'package:observatory/src/elements/vm_connect_target.dart'; | 8 import 'package:observatory/src/elements/vm_connect_target.dart'; |
| 8 import 'package:observatory/src/elements/vm_connect.dart'; | 9 import 'package:observatory/src/elements/vm_connect.dart'; |
| 9 import '../mocks.dart'; | 10 import '../mocks.dart'; |
| 10 | 11 |
| 11 void load(_) {} | 12 void load(_) {} |
| 12 | 13 |
| 13 main() { | 14 main() { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 final e = new VMConnectElement(targets, load, | 109 final e = new VMConnectElement(targets, load, |
| 109 new NotificationRepositoryMock()); | 110 new NotificationRepositoryMock()); |
| 110 document.body.append(e); | 111 document.body.append(e); |
| 111 await e.onRendered.first; | 112 await e.onRendered.first; |
| 112 (e.querySelector(tTag) as VMConnectTargetElement).delete(); | 113 (e.querySelector(tTag) as VMConnectTargetElement).delete(); |
| 113 e.remove(); | 114 e.remove(); |
| 114 await e.onRendered.first; | 115 await e.onRendered.first; |
| 115 }); | 116 }); |
| 116 }); | 117 }); |
| 117 } | 118 } |
| OLD | NEW |