chromium/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/script-type-and-language-empty.html

<!DOCTYPE html>
<title>Script @type and @language: empty strings</title>
<link rel="author" title="Ms2ger" href="mailto:[email protected]">
<link rel="author" title="Domenic Denicola" href="mailto:[email protected]">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#prepare-a-script">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<!-- Setup -->
<script>
window.run1 = window.run2 = window.run3 = window.run4 = false;
</script>

<!-- Systems under test -->
<script type="">
window.run1 = true;
</script>

<script type="" language="foo">
window.run2 = true;
</script>

<script type="" language="">
window.run3 = true;
</script>

<script language="">
window.run4 = true;
</script>

<!-- Asserts -->
<script>
test(() => {
  assert_true(window.run1);
}, "A script with empty type and no language should run");

test(() => {
  assert_true(window.run2);
}, "A script with empty type and a random language should run");

test(() => {
  assert_true(window.run3);
}, "A script with empty type and empty language should run");

test(() => {
  assert_true(window.run4);
}, "A script with no type and empty language should run");
</script>