009.html (1073B)
1 <!DOCTYPE html> 2 <html><head> 3 <title> scheduler: document.write external - multiple with doc.write</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 12 <script>log('inline script #1'); 13 document.write( '<script src="scripts/include-1.js">log(\'ignore this\')<\/script>' ); 14 document.write( '<script src="scripts/include-3.js">log(\'ignore this\')<\/script>' ); 15 document.write( '<script src="scripts/include-2.js">log(\'ignore this\')<\/script>' ); 16 log('end script #1'); 17 </script> 18 19 <script type="text/javascript"> 20 var t = async_test() 21 22 function test() { 23 assert_array_equals(eventOrder, ['inline script #1', 'end script #1', 'external script #1', 'external script before doc write', 'document.write external script', 'external script after doc write', 'external script #2' ]); 24 t.done(); 25 } 26 onload = t.step_func(test) 27 </script> 28 29 </body></html>