| OLD | NEW |
| 1 importScripts('../../../resources/js-test.js'); | 1 importScripts('../../../resources/js-test.js'); |
| 2 | 2 |
| 3 self.jsTestIsAsync = true; | 3 self.jsTestIsAsync = true; |
| 4 | 4 |
| 5 description('Test createImageBitmap with invalid blobs in workers.'); | 5 description('Test createImageBitmap with invalid blobs in workers.'); |
| 6 | 6 |
| 7 self.addEventListener('message', function(e) { | 7 self.addEventListener('message', function(e) { |
| 8 createImageBitmap(e.data).then(function() { | 8 createImageBitmap(e.data).then(function() { |
| 9 testFailed('Promise fulfuilled.'); | 9 testFailed('Promise fulfuilled.'); |
| 10 finishJSTest(); | 10 finishJSTest(); |
| 11 }, function() { | 11 }, function(ex) { |
| 12 testPassed('Promise rejected.'); | 12 testPassed('Promise rejected: ' + ex); |
| 13 finishJSTest(); | 13 finishJSTest(); |
| 14 }); | 14 }); |
| 15 }); | 15 }); |
| OLD | NEW |