diff options
Diffstat (limited to 'dom/network/tests/tcpsocket_test.sys.mjs')
-rw-r--r-- | dom/network/tests/tcpsocket_test.sys.mjs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/network/tests/tcpsocket_test.sys.mjs b/dom/network/tests/tcpsocket_test.sys.mjs new file mode 100644 index 0000000000..04f9fd1f93 --- /dev/null +++ b/dom/network/tests/tcpsocket_test.sys.mjs @@ -0,0 +1,12 @@ +export var createSocket = function(host, port, options) { + return new TCPSocket(host, port, options); +}; + +export var createServer = function(port, options, backlog) { + return new TCPServerSocket(port, options, backlog); +}; + +// See test_tcpsocket_client_and_server_basics.html's version for rationale. +export var socketCompartmentInstanceOfArrayBuffer = function(obj) { + return obj instanceof ArrayBuffer; +}; |