Revision 70e133613ba68282617c33db22e17b05a1f93430 authored by Anne van Kesteren on 15 August 2018, 14:25:47 UTC, committed by Anne van Kesteren on 15 August 2018, 14:25:47 UTC
1 parent 3878b81
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 ...