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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-svg-canvas-2x.html

Issue 1908463002: Modernize fast/hidpi layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NeedsManualRebaseline Created 4 years, 7 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
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>
5 <script src="resources/svg_canvas_helper.js"></script> 5 if (window.testRunner)
6 <script> 6 testRunner.waitUntilDone();
7 if (window.testRunner) 7 </script>
8 testRunner.waitUntilDone(); 8 <h2><a href="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset">srcset</a> test cases for SVG</h2>
9 </script> 9 <div class="test">
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 SVG without explicit dimensions - 2x</h3> 10 <h3>Canvas SVG without explicit dimensions - 2x</h3>
15 <div class="expected">expected<br/> 11 <div class="expected">expected<br/>
16 <img id="svg8" src="" srcset="resources/srcset.svg 2x"> 12 <img id="svg8" src="" srcset="resources/srcset.svg 2x">
17 </div> 13 </div>
18 <div class="actual">actual<br/> 14 <div class="actual">actual<br/>
19 <canvas id="canvas2"></canvas> 15 <canvas id="canvas2"></canvas>
20 </div> 16 </div>
21 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/> 17 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/>
22 <br clear="all"/> 18 <br clear="all"/>
23 </div> 19 </div>
24 <script> 20 <script>
25 window.addEventListener('load', function(){ 21 window.addEventListener('load', function(){
26 drawCanvas('svg8', 'canvas2', 100, 50); 22 drawCanvas('svg8', 'canvas2', 100, 50);
27 if (window.testRunner) 23 if (window.testRunner)
28 testRunner.notifyDone(); 24 testRunner.notifyDone();
29 }); 25 });
30 </script> 26 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698