021.html (918B)
1 <!DOCTYPE html> 2 <html><head> 3 <title> scheduler: DOM added script with 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 testlib.addScript('', { 'src':'javascript:log("JS URL script")' }, document.getElementsByTagName('body')[0], true); 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_array_equals(eventOrder, ['inline script #1', 'end script #1', /*'JS URL script',*/ 'inline script #2']); 22 t.done(); 23 /* pass condition changed 2010-12-01 due to CT-198 */ 24 } 25 onload = t.step_func(function(){setTimeout( test, 100); }) 26 </script> 27 28 </body></html>