let receivedBlob;
ws.onmessage = function(e) {
ok(e.data instanceof Blob, "We should be receiving a Blob");
receivedBlob = e.data;
ws.close();
}
ws.onclose = function() {
is(ws.readyState, 3, "Close readyState is 3");
// check blob contents var reader = new FileReader();
reader.onload = function() {
is(reader.result, new Array(1024*1024).join('123456789ABCDEF'), "All data matches");
}
reader.onerror = function() {
ok(false, "Something bad happen.");
}
SimpleTest.requestFlakyTimeout("The web socket tests are really fragile, but avoiding timeouts might be hard, since it's testing stuff on the network. " + "Expect all sorts of flakiness in this test...");
SimpleTest.waitForExplicitFinish();
</script>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.