| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../../js-test-resources/js-test-pre.js"></script> |
| </head> |
| <body onload="debug('load');finishJSTest();"> |
| Checks that async=false enforces execution order dynamically inserted scripts. |
| See: http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#force-async |
| <div id="console"></div> |
| <script> |
| var jsTestIsAsync = true; |
| |
| slowly_loaded_script = document.createElement("script"); |
| slowly_loaded_script.async = false; |
| slowly_loaded_script.src = "resources/slow-async-script.cgi"; |
| document.getElementsByTagName("head")[0].appendChild(slowly_loaded_script); |
| slowly_loaded_script.async = true; // Should have no effect, becaus script has already been requested. |
| |
| quickly_loaded_script = document.createElement("script"); |
| quickly_loaded_script.async = false; |
| quickly_loaded_script.src = "resources/async-script.js"; |
| document.getElementsByTagName("head")[0].appendChild(quickly_loaded_script); |
| quickly_loaded_script.async = true; // Should have no effect, becaus script has already been requested. |
| |
| </script> |
| <script src="../../js-test-resources/js-test-post.js"></script> |
| </body> |
| </html> |