chromium/third_party/blink/web_tests/http/tests/misc/BOM-override-script.html

<script>
  if (window.testRunner)
    testRunner.dumpAsText();
</script>
<p>Test that BOM can override whatever charset was set in Content-Type
(this is not the behavior of Firefox, nor expected by any standard).</p>
<p>Should say SUCCESS twice</p>

<script src="resources/BOM-override-2.pl"></script>
<script src="resources/BOM-override-3.pl"></script>