Moving script elements between documents
'''
n = 0
for timing in ["before-prepare", "after-prepare", "move-back"]:
for destType in ["iframe", "createHTMLDocument"]:
for inlineOrExternal in ["inline", "external", "empty-src"]:
for result in ["fetch-error", "parse-error", "success"]:
for type in ["classic", "module"]:
# The |inlineOrExternal| keyword creates a certain kind of script,
# and the |result| keyword can influence the generated script in
# different ways i.e., giving the script a parse-error, or creating
# a script that fails to load. When we're creating an inline script,
# it doesn't make sense to test the fetch-error case, so we ignore
# this combination, as the server will not react to it in any
# meaningful way.
if inlineOrExternal == "inline" and result == "fetch-error":
continue
if inlineOrExternal == "empty-src":
# The "empty-src" tests aim to exercise #prepare-a-script step 26
# substep 2, where the