blob: 62881e72945474c0054a48d089e849fe4bec82e5 [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();
}