<svg xmlns="http://www.w3.org/2000/svg" height="200" width="400" onload="test()"> | |
<script type="text/javascript"> | |
if (window.layoutTestController) | |
layoutTestController.dumpAsText(); | |
function test() { | |
alert('The test has passed.') | |
} | |
</script> | |
<text x="20" y="20" font-size="20">A dialog should appear and say the test has passed.</text> | |
</svg> |