chromium/third_party/blink/web_tests/fast/parser/parent-of-script-before-head.html

<!doctype html>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

if (document.getElementsByTagName("script")[0].parentNode.tagName.toUpperCase() == "HEAD")
    document.write("PASS")
else
    document.write("FAIL")
</script>