Revision 3054fb1e208e4384fc86e818dc2185dcf338e924 authored by Matt Wolenetz on 06 September 2016, 22:54:41 UTC, committed by Matt Wolenetz on 06 September 2016, 22:54:41 UTC
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 ...