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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8
9 description("Test createImageBitmap from a SVG image without intrinsic size.");
10 window.jsTestIsAsync = true;
11
12 var image = new Image();
13 image.onload = function() {
14 createImageBitmap(image).then(function(imageBitmap) {
15 testFailed("createImageBitmap promise resolved, expected to be rejected" );
16 finishJSTest();
17 }, function (e) {
18 testPassed("createImageBitmap promise rejected: " + e);
19 finishJSTest();
20 });
21 }
22 image.src = '../../svg/hixie/intrinsic/resources/003.svg';
23
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698