1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/xpconnect/tests/mochitest/test_bug764389.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=764389 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Test for Bug 764389</title> 1.12 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 +</head> 1.15 +<body> 1.16 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=764389">Mozilla Bug 764389</a> 1.17 +<p id="display"></p> 1.18 +<div id="content" style="display: none"> 1.19 +</div> 1.20 +<pre id="test"> 1.21 +<script type="application/javascript"> 1.22 + 1.23 +/** Test for Bug 764389 **/ 1.24 + 1.25 +// This is basically a crash test, but we need to write a mochitest so that it 1.26 +// runs with http:// urls instead of file:// urls. 1.27 +SimpleTest.waitForExplicitFinish(); 1.28 + 1.29 +function go() { 1.30 + var ifr = document.getElementById('ifr'); 1.31 + ifr.contentDocument.open(); 1.32 + ok(true, "Didn't crash"); 1.33 + ifr.contentDocument.close(); 1.34 + SimpleTest.finish(); 1.35 +} 1.36 + 1.37 + 1.38 + 1.39 +</script> 1.40 +<iframe id="ifr" onload="go();" src="file_empty.html"> 1.41 +</pre> 1.42 +</body> 1.43 +</html>