1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/src/jsurl/test/test_bug351633-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=351633 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 351633</title> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.13 +</head> 1.14 +<body> 1.15 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=351633">Mozilla Bug 351633</a> 1.16 +<pre id="test"> 1.17 +<script class="testbody" type="text/javascript"> 1.18 + 1.19 +/** Test for Bug 351633 **/ 1.20 +var passJSUrl1 = false; 1.21 +var passJSUrl2 = false; 1.22 +var passJSUrl3 = false; 1.23 +var passJSUrl4 = false; 1.24 + 1.25 +SimpleTest.waitForExplicitFinish(); 1.26 + 1.27 +addLoadEvent(function() { 1.28 + is(passJSUrl1, true, "Should have stopped load before getting here"); 1.29 + is(passJSUrl2, true, "Should not have stopped load where we didn't set " + 1.30 + "location"); 1.31 + is(passJSUrl3, true, "Should not have stopped load where javascript: URI " + 1.32 + "didn't return text"); 1.33 + is(passJSUrl4, true, "Should not have stopped load where javascript: URI " + 1.34 + "wasn't set on the document itself"); 1.35 + SimpleTest.finish(); 1.36 +}); 1.37 +</script> 1.38 +</pre> 1.39 +<p id="display"> 1.40 + <iframe src="load-stopping-1a.html"></iframe> 1.41 + <iframe src="load-stopping-1b.html"></iframe> 1.42 + <iframe src="load-stopping-1c.html"></iframe> 1.43 + <iframe src="load-stopping-1d.html"></iframe> 1.44 +</p> 1.45 +<div id="content" style="display: none"> 1.46 + 1.47 +</div> 1.48 +</body> 1.49 +</html> 1.50 +