wpt / infrastructure / server / wpt-server-wpt-flags.sub.html?no_flag

Open test on wpt.live | wpt.fyi

Runs: Chrome 160.0.8195.0 (wpt@1ab8957e4, 2026-12-01) | Firefox 163.0a1 (wpt@1ab8957e4, 2026-12-01) | Safari 257 preview (wpt@1ab8957e4, 2026-12-01) | Ladybird 1.0-14077 (wpt@01c8ee512, 2026-12-02) | Servo Servo 0.8 (wpt@75c11f957, 2026-12-01) | Blitz 713a982dc (wpt@705f393a6, 2026-12-01)

ChromeFirefoxSafariLadybirdServoBlitz
Total1/11/11/11/11/1NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
http port without flagPASSPASSPASSPASSPASS—

/infrastructure/server/wpt-server-wpt-flags.sub.html

<!doctype html>
<html>
  <head>
    <title>WPT Server checker</title>
    <meta charset="utf-8" />
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <meta name="variant" content="?no_flag">
    <meta name="variant" content="?wpt_flags=h2">
    <meta name="variant" content="?wpt_flags=https">
  </head>
</body>
<body>
<script>

if (location.search == '?wpt_flags=h2') {
  test(function() {
      assert_equals(document.location.port, "{{ports[h2][0]}}");
  }, "h2 port with wpt_flags=h2")
} else if (location.search == '?wpt_flags=https') {
  test(function() {
      assert_equals(document.location.port, "{{ports[https][0]}}");
  }, "https port with wpt_flags=https")
} else {
  test(function() {
      assert_equals(document.location.port, "{{ports[http][0]}}");
  }, "http port without flag")
}

</script>
</body>
</html>