| /* |
| * Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| * for details. All rights reserved. Use of this source code is governed by a |
| * BSD-style license that can be found in the LICENSE file. |
| */ |
| /** |
| * @assertion void leftView() |
| * Called by the DOM when this element has been removed from the live document. |
| * @description Checks that leftView() is called when element is removed from |
| * the live document. |
| */ |
| import "dart:html"; |
| import "../../../Utils/expect.dart"; |
| |
| class IFrameElement1 extends IFrameElement { |
| IFrameElement1.created() : super.created(); |
| leftView() { |
| super.leftView(); |
| asyncEnd(); |
| } |
| } |
| |
| main() { |
| var tag = 'x-foo'; |
| document.register(tag, IFrameElement1, extendsTag: "iframe"); |
| |
| asyncStart(); |
| IFrameElement1 x = new Element.tag(tag); |
| document.body.append(x); |
| x.remove(); |
| } |