blob: 7ab54e6ccd134a35dbdf4e6f85417b5913b73c26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>
var worker = startWorker('./resources/canvas-createImageBitmap-invalid-blob-in-workers.js');
var xhr = new XMLHttpRequest();
xhr.open("GET", 'resources/empty.svg');
xhr.responseType = 'blob';
xhr.send();
xhr.onload = function() {
worker.postMessage(xhr.response);
}
</script>
</body>
</html>
|