<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFrames();
}
function runTest()
{
var frames = document.getElementsByTagName("iframe");
var dummy = frames[0];
var testFrame = frames[1];
testFrame.contentDocument.adoptNode(dummy);
testFrame.contentDocument.body.appendChild(dummy);
}
window.onload = runTest;
</script>
</head>
<body>
<iframe src="data:text/plain,Frame 1"></iframe>
<iframe src="resources/iframe-reparenting-unique-name-iframe2.html"></iframe>
</body>
</html>