blob: 9d21619d5090f71accce05b2a3e833509b9a0e7b [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 insertAllBefore(Iterable<Node> newNodes, Node refChild)
* Inserts all of the nodes into this node directly before refChild.
* MDN: If referenceElement is null, newElement is inserted at the end of the
* list of child nodes.
* @description Checks expected dom after insert
*/
import "dart:html";
main() {
var div = new Element.html('<div><span></span></div>');
div.insertAllBefore([new HRElement(), new AnchorElement()], null);
// ^^^^
// [analyzer] unspecified
// [cfe] unspecified
}