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

Side by Side Diff: LayoutTests/fast/hidpi/image-srcset-intrinsic-size.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 window.targetScaleFactor = 2; 4 window.targetScaleFactor = 2;
5 </script> 5 </script>
6 <script src="resources/srcset-helper.js"></script> 6 <script src="resources/srcset-helper.js"></script>
7 <script src="../js/resources/js-test-pre.js"></script> 7 <script src="../../resources/js-test.js"></script>
8 <script> 8 <script>
9 addEventListener("load", function() { 9 addEventListener("load", function() {
10 shouldBeTrue('document.getElementById("foo").clientWidth==200'); 10 shouldBeTrue('document.getElementById("foo").clientWidth==200');
11 shouldBeTrue('document.getElementById("foo2").clientWidth==400'); 11 shouldBeTrue('document.getElementById("foo2").clientWidth==400');
12 shouldBeTrue('document.getElementById("foo3").clientWidth==100'); 12 shouldBeTrue('document.getElementById("foo3").clientWidth==100');
13 shouldBeTrue('document.getElementById("foo4").clientWidth==200'); 13 shouldBeTrue('document.getElementById("foo4").clientWidth==200');
14 }, false); 14 }, false);
15 </script> 15 </script>
16 </head> 16 </head>
17 17
18 <body id="body"> 18 <body id="body">
19 <div> 19 <div>
20 This test passes if the images are all displayed with appropriate dimens ions. 20 This test passes if the images are all displayed with appropriate dimens ions.
21 </div> 21 </div>
22 <img id="foo" srcset="resources/blue-100-px-square.png 1x, resources/deleteB utton.png 3x, resources/green-400-px-square.png 2x"> 22 <img id="foo" srcset="resources/blue-100-px-square.png 1x, resources/deleteB utton.png 3x, resources/green-400-px-square.png 2x">
23 <br> 23 <br>
24 <img id="foo2" src="resources/green-400-px-square.png"> 24 <img id="foo2" src="resources/green-400-px-square.png">
25 <br> 25 <br>
26 <img id="foo3" srcset="resources/srcset.svg 2x"> 26 <img id="foo3" srcset="resources/srcset.svg 2x">
27 <br> 27 <br>
28 <img id="foo4" src="resources/srcset.svg"> 28 <img id="foo4" src="resources/srcset.svg">
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698