This test difffers from scriptloadinteractive in that attachEvent is preferred over addEventListener to work around an IE9 issue where its addEventListener behavior does not match all other addEventListener browsers that fire the script onload event right after executing a script (at least before executing any other script).
This test checks to see if a function call can be associated with a specific script tag.
For non-IE 6-8 browsers, the script onload event may not fire right after the the script is evaluated. Kris Zyp found for IE though that in a function call that is called while the script is executed, it could query the script nodes and the one that is in "interactive" mode indicates the current script.
So this test tries to see to use interactive state if possible, and if that does not work, falls back to using script onload to associate the scripts.
Check the console for output. Expected result, all scripts are matched up with their calls.