aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html')
m---------tests/wpt/web-platform-tests0
-rw-r--r--tests/wpt/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html12
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests b/tests/wpt/web-platform-tests
deleted file mode 160000
-Subproject 29dfb8944e535d439ca94cf7d1b1d9138a8ad11
diff --git a/tests/wpt/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html b/tests/wpt/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html
new file mode 100644
index 00000000000..f89c1f05815
--- /dev/null
+++ b/tests/wpt/web-platform-tests/websockets/interfaces/WebSocket/protocol/protocol-initial.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<title>WebSockets: getting protocol in connecting</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script src=../../../constants.js?pipe=sub></script>
+<div id=log></div>
+<script>
+test(function(t) {
+ // The protocol attribute must initially return the empty string
+ assert_equals((new WebSocket(SCHEME_AND_DOMAIN+'/')).protocol, '');
+});
+</script>