blob: 1b8852035f60c9d47966cf8e9d3e72fa4e72b9e6 [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 Node clone(bool deep)
* Returns a copy of this node.
* If deep is true, then all of this node's children and decendents are copied as well.
* If deep is false, then only this node is copied.
* @description Checks that document is shallow cloned if deep==false.
* @needsreview issue #16409
*/
import "dart:html";
import "../../../Utils/expect.dart";
main() {
Document cd = document.clone(false) as Document;
Expect.isNotNull(cd, "document.clone(false)==null");
var cdchilds = cd.childNodes;
Expect.equals(0, cdchilds.length);
}