Revision a39e0345491427d036bae69488b72661e11057f6 authored by Simon Pieters on 24 April 2018, 20:32:47 UTC, committed by L. David Baron on 24 April 2018, 20:32:47 UTC
1 parent ff863cd
Send-data.worker.js
importScripts("/resources/testharness.js");
importScripts('websocket.sub.js')
var data = "test data";
async_test(function(t) {
var wsocket = CreateWebSocket(false, false, false);
wsocket.addEventListener('open', function (e) {
wsocket.send(data)
}, true)
wsocket.addEventListener('message', t.step_func_done(function(e) {
assert_equals(e.data, data);
done();
}), true);
}, "W3C WebSocket API - Send data on a WebSocket in a Worker")
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...