Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html

Issue 1589923002: Add more layout test cases to createImageBitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698