108.html (736B)
1 <!DOCTYPE html> 2 <html><head> 3 <title> scheduler: javascript URL in iframe</title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="testlib/testlib.js"></script> 7 </head> 8 <body> 9 <div id="log">Not tested</div> 10 <script> 11 var t = async_test(); 12 var iframe_onload = false; 13 14 t.step(function() { 15 log('inline script #1'); 16 document.write("<iframe src='javascript:void(top.log("iframe script #1"));'></iframe>"); 17 log('inline script #2') 18 }) 19 20 onload = t.step_func(function() { 21 assert_array_equals(eventOrder, ["inline script #1", "inline script #2", "iframe script #1"]); 22 t.done(); 23 }); 24 </script> 25 </body>