1 importScripts('../../../resources/js-test.js');
3 self.jsTestIsAsync = true;
5 description('Test createImageBitmap with data in workers.');
7 self.addEventListener('message', function(e) {
8 createImageBitmap(e.data).then(function() {
9 testPassed('Promise fulfilled.');
12 testFailed('Promise rejected.');