blob: 62323ae81cf95d6f704a9e22d08587ea7c212ea1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
jsTestIsAsync = true;
description("Tests that we can load an iframe from a data URL.");
function runTest() {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
}
var frame = document.createElement('iframe');
document.body.appendChild(frame);
frame.src = "data:text/html,PASS: Load succeeded.<script>window.testRunner && window.testRunner.notifyDone()</" + "script>";
}
</script>
</head>
<body onload=runTest()>
</body>
</html>