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

Side by Side Diff: LayoutTests/fast/dom/Window/device-pixel-ratio-on-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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p> 7 <p>
8 Tests that window.devicePixelRatio is updated on zoom. 8 Tests that window.devicePixelRatio is updated on zoom.
9 </p> 9 </p>
10 <script> 10 <script>
11 // eventSender.zoomPageOut/In zooms with a fixed factor of 1.2 inste ad 11 // eventSender.zoomPageOut/In zooms with a fixed factor of 1.2 inste ad
12 // of the zoom levels of the actual browser. 12 // of the zoom levels of the actual browser.
13 var ZOOM_MULTIPLIER = 1.2; 13 var ZOOM_MULTIPLIER = 1.2;
14 14
(...skipping 11 matching lines...) Expand all
26 } 26 }
27 for (var i = 0; i < 10; i++) { 27 for (var i = 0; i < 10; i++) {
28 eventSender.zoomPageIn(); 28 eventSender.zoomPageIn();
29 expectedRatio *= ZOOM_MULTIPLIER; 29 expectedRatio *= ZOOM_MULTIPLIER;
30 shouldBe('round(window.devicePixelRatio)', String(round(expe ctedRatio))); 30 shouldBe('round(window.devicePixelRatio)', String(round(expe ctedRatio)));
31 } 31 }
32 } 32 }
33 </script> 33 </script>
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/customized-property-survives-gc.html ('k') | LayoutTests/fast/dom/Window/es52-globals.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698