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

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

Issue 1638953002: [DevTools] Migrate device-emulation tests from OverridesSupport to inspector-protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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-protocol/inspector-protocol-test.js"></s cript>
5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script src="device-emulation-test.js"></script> 5 <script src="device-emulation-test.js"></script>
7 6
8 <script> 7 <script>
9 // This test is based on http://jsbin.com/urowoh/latest. 8 // This test is based on http://jsbin.com/urowoh/latest.
10 setMetaViewport(); 9 setMetaViewport();
11 </script> 10 </script>
12 11
13 <style> 12 <style>
14 html { 13 html {
15 overflow-x: hidden; 14 overflow-x: hidden;
16 } 15 }
17 16
18 body { 17 body {
19 margin: 0; 18 margin: 0;
20 min-height: 1000px; 19 min-height: 1000px;
21 overflow-x: hidden; 20 overflow-x: hidden;
22 } 21 }
23 </style> 22 </style>
24 23
25 <script> 24 <script>
26 function test() 25 function test()
27 { 26 {
28 InspectorTest.testDeviceEmulation("device-emulation-insets.html", 1200, 1000 , 1, "none", new Insets(10, 20, 30, 40)); 27 InspectorTest.testDeviceEmulation("device-emulation-insets.html", 1200, 1000 , 1, "none", {left: 10, top: 20, right: 30, bottom: 40});
29 } 28 }
30 </script> 29 </script>
31 30
32 </head> 31 </head>
33 <body onload="runTest()"> 32 <body onload="runTest()">
34 <p> 33 <p>
35 Tests that device emulation with insets affects window.screenWidth, window.scree nHeight, screen.width and screen.height. 34 Tests that device emulation with insets affects window.screenWidth, window.scree nHeight, screen.width and screen.height.
36 </p> 35 </p>
37 </body> 36 </body>
38 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698