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