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

Side by Side Diff: LayoutTests/fast/hidpi/image-srcset-dpr-zoom.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 if (!window.eventSender) 4 if (!window.eventSender)
5 document.write("Automatic zoom-in does not work in manual mode. Try zoom ing in manually and refresh."); 5 document.write("Automatic zoom-in does not work in manual mode. Try zoom ing in manually and refresh.");
6 else 6 else
7 while(!matchMedia("screen and (min-resolution: 2dppx)").matches) 7 while(!matchMedia("screen and (min-resolution: 2dppx)").matches)
8 eventSender.zoomPageIn(); 8 eventSender.zoomPageIn();
9 </script> 9 </script>
10 <script src="../js/resources/js-test-pre.js"></script> 10 <script src="../../resources/js-test.js"></script>
11 <script> 11 <script>
12 function updateSrc() { 12 function updateSrc() {
13 var img = document.getElementById("foo"); 13 var img = document.getElementById("foo");
14 img.srcset = "resources/blue-100-px-square.png 1x, resources/green-400-p x-square.png 2x"; 14 img.srcset = "resources/blue-100-px-square.png 1x, resources/green-400-p x-square.png 2x";
15 } 15 }
16 16
17 addEventListener("DOMContentLoaded", function() { 17 addEventListener("DOMContentLoaded", function() {
18 updateSrc(); 18 updateSrc();
19 }, false); 19 }, false);
20 20
21 addEventListener("load", function() { 21 addEventListener("load", function() {
22 shouldBeTrue('document.getElementById("foo").clientWidth==200'); 22 shouldBeTrue('document.getElementById("foo").clientWidth==200');
23 }, false); 23 }, false);
24 </script> 24 </script>
25 </head> 25 </head>
26 26
27 <body id="body"> 27 <body id="body">
28 <div>This test passes if the image below is a 200px wide green square when t he deviceScaleFactor is 1, since the user has zoomed in.</div> 28 <div>This test passes if the image below is a 200px wide green square when t he deviceScaleFactor is 1, since the user has zoomed in.</div>
29 <img id="foo"> 29 <img id="foo">
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/hidpi/image-srcset-data-srcset.html ('k') | LayoutTests/fast/hidpi/image-srcset-fraction.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698