blob: 9338c398bbecee1608f240ea8db41bd25bdcc769 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<title>replaceChild siblings bug</title>
if (window.testRunner)
function test() {
var obj = document.getElementById('child1');
var parent = document.getElementById('parent');
var nextobj = document.getElementById('child2');
var replaced = parent.replaceChild(obj, nextobj);
document.getElementById('result').innerText = parent.children.length == 1 ? "PASS" : "FAIL";
<body onload="test()">
This is a test for <i> Assertion failure in LayoutBlockFlow::addChildToFlow during replaceChild</i>.
It tests whether replaceChild() works correctly when the new node and the
old node are siblings.
<p>Test result: <span id="result"></span></p>
<div id="parent">
<div id="child1"></div><div id="child2"></div>