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

Side by Side Diff: LayoutTests/inspector/device-emulation/device-emulation-insets.html

Issue 1209013002: [DevTools] Add test for screen size and position overrides. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/device-emulation/device-emulation-insets-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script src="device-emulation-test.js"></script> 6 <script src="device-emulation-test.js"></script>
7 7
8 <script> 8 <script>
9 // This test is based on http://jsbin.com/urowoh/latest. 9 // This test is based on http://jsbin.com/urowoh/latest.
10 setMetaViewport(); 10 setMetaViewport();
11 </script> 11 </script>
12 12
13 <style> 13 <style>
14 html { 14 html {
15 overflow-x: hidden; 15 overflow-x: hidden;
16 } 16 }
17 17
18 body { 18 body {
19 margin: 0; 19 margin: 0;
20 min-height: 1000px; 20 min-height: 1000px;
21 overflow-x: hidden; 21 overflow-x: hidden;
22 } 22 }
23 </style> 23 </style>
24 24
25 <script> 25 <script>
26 function test() 26 function test()
27 { 27 {
28 InspectorTest.testDeviceEmulation("device-emulation-980-2x.html", 1200, 1000 , 2, "w=980"); 28 InspectorTest.testDeviceEmulation("device-emulation-insets.html", 1200, 1000 , 1, "none", new Insets(10, 20, 30, 40));
29 } 29 }
30 </script> 30 </script>
31 31
32 </head> 32 </head>
33 <body onload="runTest()"> 33 <body onload="runTest()">
34 <p> 34 <p>
35 Tests that device emulation affects media rules, viewport meta tag, body dimensi ons and window.screen. 35 Tests that device emulation with insets affects window.screenWidth, window.scree nHeight, screen.width and screen.height.
36 </p> 36 </p>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/device-emulation/device-emulation-insets-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698