028.html (985B)
1 <!DOCTYPE html> 2 <html><head> 3 <title> scheduler: javascript: URL</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 10 <div id="log">FAILED (This TC requires JavaScript enabled)</div> 11 <script>log('inline script #1'); 12 window.location.replace('javascript:log(\'JS URL\')'); 13 log('end script #1'); 14 </script> 15 16 <script type="text/javascript"> 17 log( 'inline script #2' ); 18 var t = async_test() 19 20 function test() { 21 assert_any(assert_array_equals, eventOrder, [ 22 ['inline script #1', 'end script #1', 'JS URL', 'inline script #2'], 23 ['inline script #1', 'end script #1', 'inline script #2', 'JS URL']]); 24 t.done(); 25 } 26 onload = t.step_func(test) 27 </script> 28 29 </body></html>