blob: 9db632831eba68ea558c45bdbac888ef5f9ec810 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE html>
<html>
<script>
onload = function() {
function done(success) {
var bc = new BroadcastChannel("test_channel");
bc.postMessage({success});
bc.close();
}
try {
new WebSocket("ws://mochi.test:8888/tests/dom/websocket/tests/file_websocket_basic");
done(true); // no hang!
} catch (e) {
done(false);
}
}
</script>
</html>
|