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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html b/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html
new file mode 100644
index 0000000000000000000000000000000000000000..a243248a3e5c98a002ac73455bf94354ca46701b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+
+<style>
+ body {
+ height: 2000px;
+ width: 2000px;
+ }
+ ::-webkit-scrollbar {
ajuma 2016/09/19 17:37:39 Is this part needed?
sunxd 2016/09/19 18:54:32 Done.
+ width: 0px;
+ height: 0px;
+ }
+</style>
+
+<script>
+ function viewport() {
+ return window.visualViewport;
ajuma 2016/09/19 17:37:39 This seems unused.
sunxd 2016/09/19 18:54:32 Done.
+ }
+
+ window.internals.setPageScaleFactor(-1);
+
+ window.onload = function() {
+ if (window.testRunner)
+ window.testRunner.capturePixelsAsyncThen(function() {});
ajuma 2016/09/19 17:37:39 Would it work to set this up in the waitUntilDone/
+ }
+</script>
« 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