Nested doc.write Test
This test checks how the browser treats document.write calls that are nested.
- a script for one.js is written via document.write()
- when one.js loads it asks for two.js to be written via document.write()
- one.js then immediately accesses something defined in two.js
The expectation is that the access to the variable defined by two.js in one.js
will fail.
Check the console for output