blob: e8cded43c1bb5dc6568acd7931f1281523108e7e [file] [log] [blame]
<html>
<script>
function runTest() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
var c = document.getElementById('container');
var r = document.getElementById('result');
c.innerHTML = "<span><iframe></iframe><iframe></iframe></span>"
if (window.frames.length != 2) {
r.innerHTML = 'FAILURE - number of frames should be 2, was ' + window.frames.length;
return;
}
if (window.frames[0].name == window.frames[1].name) {
r.innerHTML = 'FAILURE - both windows had tne same name'
return;
}
r.innerHTML = 'SUCCESS';
}
</script>
<body onload="runTest()">
<div id="container"></div>
<div>This tests that inserting two &lt;iframe&gt; elements using innerHTML actually causes two frames with unique names to be created.</div>
<div id="result">FAILURE</div>
</body>
</html>