blob: 8aa03e510b3ce5b2babdb99ba4de3fd0c0b57a1e (
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="../../resources/js-test.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>
|