blob: 1337ccf5f4232aad85c9f352d7ad435becfd255b [file] [log] [blame]
// 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.
/// @issue 43293
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.registerElement(tag, IFrameElement1, extendsTag: "iframe");
asyncStart();
IFrameElement1 x = new Element.tag(tag) as IFrameElement1;
document.body?.append(x);
x.remove();
}