summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/third_party/websockets/experiments/authentication/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/third_party/websockets/experiments/authentication/test.js')
-rw-r--r--testing/web-platform/tests/tools/third_party/websockets/experiments/authentication/test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/third_party/websockets/experiments/authentication/test.js b/testing/web-platform/tests/tools/third_party/websockets/experiments/authentication/test.js
new file mode 100644
index 0000000000..428830ff31
--- /dev/null
+++ b/testing/web-platform/tests/tools/third_party/websockets/experiments/authentication/test.js
@@ -0,0 +1,6 @@
+// for connecting to WebSocket servers
+var token = document.body.dataset.token;
+
+// for test assertions only
+const params = new URLSearchParams(window.location.search);
+var user = params.get("user");