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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/device-mode/device-mode-responsive.html

Issue 2626143004: DevTools: move from Common module - Geometry and CSSShadowModel (Closed)
Patch Set: minimize test diff Created 3 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 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="device-mode-test.js"></script> 4 <script src="device-mode-test.js"></script>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 function test() 6 function test()
7 { 7 {
8 var phone0 = InspectorTest.buildFakePhone(); 8 var phone0 = InspectorTest.buildFakePhone();
9 var phone1 = InspectorTest.buildFakePhone(); 9 var phone1 = InspectorTest.buildFakePhone();
10 10
11 var view = new Emulation.DeviceModeView(); 11 var view = new Emulation.DeviceModeView();
12 var toolbar = view._toolbar; 12 var toolbar = view._toolbar;
13 var model = view._model; 13 var model = view._model;
14 var viewportSize = new Size(320, 480); 14 var viewportSize = new UI.Size(320, 480);
15 model.setAvailableSize(viewportSize, viewportSize); 15 model.setAvailableSize(viewportSize, viewportSize);
16 16
17 InspectorTest.addResult("\nSetting device mode to responsive mode with viewp ort of size: " + JSON.stringify(viewportSize)); 17 InspectorTest.addResult("\nSetting device mode to responsive mode with viewp ort of size: " + JSON.stringify(viewportSize));
18 toolbar._switchToResponsive(); 18 toolbar._switchToResponsive();
19 dumpModelInfo(); 19 dumpModelInfo();
20 20
21 var width = viewportSize.width - 1; 21 var width = viewportSize.width - 1;
22 InspectorTest.addResult("Setting width to " + width); 22 InspectorTest.addResult("Setting width to " + width);
23 toolbar._applyWidth(width); 23 toolbar._applyWidth(width);
24 dumpModelInfo(); 24 dumpModelInfo();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 } 69 }
70 70
71 71
72 </script> 72 </script>
73 </head> 73 </head>
74 <body onload="runTest()"> 74 <body onload="runTest()">
75 <p>Test that device mode's responsive mode behaves correctly when adjusting inpu ts.</p> 75 <p>Test that device mode's responsive mode behaves correctly when adjusting inpu ts.</p>
76 </body> 76 </body>
77 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698