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

Side by Side Diff: LayoutTests/fast/dom/window-inner-size-scaling.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 <script src="../js/resources/js-test-pre.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description("This test ensures window.innerWidth/innerHeight return the size of the visual viewport in CSS pixels."); 4 description("This test ensures window.innerWidth/innerHeight return the size of the visual viewport in CSS pixels.");
5 5
6 var originalWidth = window.innerWidth; 6 var originalWidth = window.innerWidth;
7 var originalHeight = window.innerHeight; 7 var originalHeight = window.innerHeight;
8 var scale = 2; 8 var scale = 2;
9 9
10 if (window.eventSender) 10 if (window.eventSender)
11 window.eventSender.setPageScaleFactor(scale, 0, 0); 11 window.eventSender.setPageScaleFactor(scale, 0, 0);
12 12
13 shouldBe("window.innerWidth", "Math.floor(originalWidth / scale)"); 13 shouldBe("window.innerWidth", "Math.floor(originalWidth / scale)");
14 shouldBe("window.innerHeight", "Math.floor(originalHeight / scale)"); 14 shouldBe("window.innerHeight", "Math.floor(originalHeight / scale)");
15 </script> 15 </script>
16 </html> 16 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/webtiming-document-open.html ('k') | LayoutTests/fast/dom/window-scroll-scaling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698