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

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: Prevent test from setting -1 page scale factor. Created 4 years, 2 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 height: 2000px;
7 width: 2000px;
8 }
9 </style>
10 <script>
11 function run()
12 {
13 window.internals.setPageScaleFactor(-1);
14 if (window.testRunner) {
15 testRunner.capturePixelsAsyncThen(function() {});
16 testRunner.waitUntilDone();
17 window.setTimeout(notifyDone, 1200);
18 }
19 }
20 function notifyDone()
21 {
22 testRunner.notifyDone();
23 }
24 </script>
25 </head>
26 <body onload="run()">
27 <div id="description">
28 The test passes if the page does not crash.
29 </div>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698