diff options
Diffstat (limited to 'testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html')
-rw-r--r-- | testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html b/testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html new file mode 100644 index 0000000000..9af9cda463 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/server/wpt-server-wpt-flags.sub.html @@ -0,0 +1,32 @@ +<!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=""> + <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> |