<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
description("This tests that we do not assert when a malformed JS URL is passed to the 'src' attribute of an iframe. The test passes if it does not ASSERT.");

if (window.testRunner)
    testRunner.dumpAsText();

function runTest()
{
    var testFrame1 = document.getElementById('testFrame1');
    testFrame1.getAttributeNode("src").value += "missingFunction(this) orem ipsum dosolorem";

    var testFrame2 = document.getElementById('testFrame2');
    testFrame2.getAttributeNode("src").value += "javascript:missingFunction(this) orem ipsum dosolorem";
}
</script>
</head>
<body onload="runTest()">
    <iframe id='testFrame1' src='javascript:'></iframe>
    <iframe id='testFrame2' src='foo'></iframe>
</body>
</html>
