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

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: update layout test result 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2c7b29d348285fb3aed845bb52b187020c74414b 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("Promise accepted, expected to be rejected");
+ finishJSTest();
+ }, () => {
+ testPassed("createImageBitmap from a neutered ImageBitmap was rejected");
+ });
});
worker.onmessage = function(e) {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698