blob: ff6e6c2e94f35a0bbd62d08004432e1673186bb5 [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 final Document ownerDocument
* The document this node belongs to.
* @description Checks ownerDocument of adopted node
*/
import "dart:html";
import "../../../Utils/expect.dart";
main() {
IFrameElement x = new Element.html('<iframe class="y">Content Text</iframe>')
as IFrameElement;
var d = document.implementation?.createHtmlDocument('doc');
d?.adoptNode(x);
Expect.equals(d, x.ownerDocument);
}