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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html

Issue 2350163002: Prevent LayoutTest setting -1 page scale factor. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <style>
4 body {
5 height: 2000px;
6 width: 2000px;
7 }
8 ::-webkit-scrollbar {
ajuma 2016/09/19 17:37:39 Is this part needed?
sunxd 2016/09/19 18:54:32 Done.
9 width: 0px;
10 height: 0px;
11 }
12 </style>
13
14 <script>
15 function viewport() {
16 return window.visualViewport;
ajuma 2016/09/19 17:37:39 This seems unused.
sunxd 2016/09/19 18:54:32 Done.
17 }
18
19 window.internals.setPageScaleFactor(-1);
20
21 window.onload = function() {
22 if (window.testRunner)
23 window.testRunner.capturePixelsAsyncThen(function() {});
ajuma 2016/09/19 17:37:39 Would it work to set this up in the waitUntilDone/
24 }
25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698