OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <link rel="stylesheet" href="resources/svg_tests.css"> |
3 <head> | 3 <script src="resources/svg_canvas_helper.js"></script> |
4 <link rel="stylesheet" href="resources/svg_tests.css"> | 4 <script src="resources/print_img_failure.js"></script> |
5 <script src="resources/svg_canvas_helper.js"></script> | 5 <script> |
6 <script src="resources/print_img_failure.js"></script> | 6 if (window.testRunner) |
7 <script> | 7 testRunner.waitUntilDone(); |
8 if (window.testRunner) | 8 </script> |
9 testRunner.waitUntilDone(); | 9 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> test
cases for SVG</h2> |
10 </script> | 10 <div class="test"> |
11 </head> | |
12 <body> | |
13 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> te
stcases for SVG</h2> | |
14 <div class="test"> | |
15 <h3>Canvas relative SVG with explicit dimensions - 1x</h3> | 11 <h3>Canvas relative SVG with explicit dimensions - 1x</h3> |
16 <div class="expected">expected<br/> | 12 <div class="expected">expected<br/> |
17 <img id="svg10" src="resources/relativesrcset.svg" width="100" height="50"
> | 13 <img id="svg10" src="resources/relativesrcset.svg" width="100" height="5
0"> |
18 </div> | 14 </div> |
19 <div class="actual">actual<br/> | 15 <div class="actual">actual<br/> |
20 <canvas id="canvas6"></canvas> | 16 <canvas id="canvas6"></canvas> |
21 </div> | 17 </div> |
22 This test should show an SVG image drawn into a canvas. The canvas and image
should look the same and both should be 100x50.<br/> | 18 This test should show an SVG image drawn into a canvas. The canvas and image
should look the same and both should be 100x50.<br/> |
23 <br clear="all"/> | 19 <br clear="all"/> |
24 </div> | 20 </div> |
25 <script> | 21 <script> |
26 window.addEventListener('load', function(){ | 22 window.addEventListener('load', function(){ |
27 drawCanvas('svg10', 'canvas6', 100, 50); | 23 drawCanvas('svg10', 'canvas6', 100, 50); |
28 if (window.testRunner) | 24 if (window.testRunner) |
29 testRunner.notifyDone(); | 25 testRunner.notifyDone(); |
30 }); | 26 }); |
31 </script> | 27 </script> |
32 </body> | |
33 </html> | |
OLD | NEW |