Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html |
| index 2114d7f7cdec3cbea8f806c2bc797b819c430c35..4a386c15545a0a88d3259f4786ec478ec1c7b1b2 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html |
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html |
| @@ -39,6 +39,15 @@ createImageBitmap(image).then(imageBitmap => { |
| bitmapHeight = imageBitmap.height; |
| shouldBe("bitmapWidth", "0"); |
| shouldBe("bitmapHeight", "0"); |
| + |
| + newImageBitmap = imageBitmap; |
| + // Test createImageBitmap from neutered ImageBitmap |
| + createImageBitmap(imageBitmap).then(function() { |
| + testFailed("Unexpected failure"); |
|
Justin Novosad
2016/01/14 15:06:59
"Promise accepted, expected to be rejected"
|
| + finishJSTest(); |
| + }, () => { |
| + testPassed("createImageBitmap from a neutered ImageBitmap should be rejected"); |
|
Justin Novosad
2016/01/14 15:06:59
should be -> was
|
| + }); |
| }); |
| worker.onmessage = function(e) { |