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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/device-mode/device-mode-test.js

Issue 2431823002: DevTools: device mode devices remember last used zoom (Closed)
Patch Set: rename to device-mode-test Created 4 years, 1 month 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 var initialize_DeviceMode = function()
2 {
3 InspectorTest.buildFakePhone = function(overrides)
4 {
5 var StandardPhoneJSON = {
6 "show-by-default": false,
7 "title": "Fake Phone 1",
8 "screen": {
9 "horizontal": { "width": 480, "height": 320 },
10 "device-pixel-ratio": 2,
11 "vertical": { "width": 320, "height": 480 }
12 },
13 "capabilities": ["touch", "mobile"],
14 "user-agent": "fakeUserAgent",
15 "type": "phone",
16 "modes": [
17 {
18 "title": "default",
19 "orientation": "vertical",
20 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
21 },
22 {
23 "title": "default",
24 "orientation": "horizontal",
25 "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
26 }
27 ]
28 };
29 var json = Object.assign(StandardPhoneJSON, overrides || {});
30 return WebInspector.EmulatedDevice.fromJSONV1(json);
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698