OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <link rel="stylesheet" href="resources/svg_tests.css"> |
| 5 <script src="resources/svg_canvas_helper.js"></script> |
| 6 <script> |
| 7 if (window.testRunner) |
| 8 testRunner.waitUntilDone(); |
| 9 </script> |
| 10 </head> |
| 11 <body> |
| 12 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> te
stcases for SVG</h2> |
| 13 <div class="test"> |
| 14 <h3>Canvas PNG without explicit dimensions - 1x</h3> |
| 15 <div class="expected">expected<br/> |
| 16 <img id="png5" src="" srcset="resources/srcset.png"> |
| 17 </div> |
| 18 <div class="actual">actual<br/> |
| 19 <canvas id="canvas3"></canvas> |
| 20 </div> |
| 21 This test should show a PNG image drawn into a canvas. The canvas and image
should look the same and both should be 200x100.<br/> |
| 22 <code class="stats" id="code13"></code> |
| 23 <br clear="all"/> |
| 24 </div> |
| 25 <div class="test"> |
| 26 <h3>Canvas PNG without explicit dimensions - 2x</h3> |
| 27 <div class="expected">expected<br/> |
| 28 <img id="png6" src="" srcset="resources/srcset.png 2x"> |
| 29 </div> |
| 30 <div class="actual">actual<br/> |
| 31 <canvas id="canvas4"></canvas> |
| 32 </div> |
| 33 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/> |
| 34 <code class="stats" id="code14"></code> |
| 35 <br clear="all"/> |
| 36 </div> |
| 37 <script> |
| 38 window.addEventListener('load', function(){ |
| 39 drawCanvas('png5', 'canvas3', 200, 100); |
| 40 printSizes('png5', 'code13'); |
| 41 drawCanvas('png6', 'canvas4', 100, 50); |
| 42 printSizes('png6', 'code14'); |
| 43 if (window.testRunner) |
| 44 testRunner.notifyDone(); |
| 45 }); |
| 46 </script> |
| 47 </body> |
| 48 </html> |
OLD | NEW |