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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html

Issue 1890613002: Support createImageBitmap from a SVG image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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-createImageBitmap-svg-no-intrinsic-size.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6f756b0ff2226c2bc06193d36238e74e1192ed8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-svg-no-intrinsic-size.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+
+description("Test createImageBitmap from a SVG image without intrinsic size.");
+window.jsTestIsAsync = true;
+
+var image = new Image();
+image.onload = function() {
+ createImageBitmap(image).then(function(imageBitmap) {
+ testFailed("createImageBitmap promise resolved, expected to be rejected");
+ finishJSTest();
+ }, function (e) {
+ testPassed("createImageBitmap promise rejected: " + e);
+ finishJSTest();
+ });
+}
+image.src = '../../svg/hixie/intrinsic/resources/003.svg';
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698