Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / resources / canvas-createImageBitmap-data-in-workers.js
blobae38ca441de9b9378670ceef81fa0b68a785d694
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.');
10     finishJSTest();
11   }, function() {
12     testFailed('Promise rejected.');
13     finishJSTest();
14   });
15 });