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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/device-mode/device-mode-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/device-mode/device-mode-test.js b/third_party/WebKit/LayoutTests/inspector/device-mode/device-mode-test.js
new file mode 100644
index 0000000000000000000000000000000000000000..e7e412384b806dd8d48d59f81f0b27f9c0f163ae
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/device-mode/device-mode-test.js
@@ -0,0 +1,32 @@
+var initialize_DeviceMode = function()
+{
+ InspectorTest.buildFakePhone = function(overrides)
+ {
+ var StandardPhoneJSON = {
+ "show-by-default": false,
+ "title": "Fake Phone 1",
+ "screen": {
+ "horizontal": { "width": 480, "height": 320 },
+ "device-pixel-ratio": 2,
+ "vertical": { "width": 320, "height": 480 }
+ },
+ "capabilities": ["touch", "mobile"],
+ "user-agent": "fakeUserAgent",
+ "type": "phone",
+ "modes": [
+ {
+ "title": "default",
+ "orientation": "vertical",
+ "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
+ },
+ {
+ "title": "default",
+ "orientation": "horizontal",
+ "insets": { "left": 0, "top": 0, "right": 0, "bottom": 0 }
+ }
+ ]
+ };
+ var json = Object.assign(StandardPhoneJSON, overrides || {});
+ return WebInspector.EmulatedDevice.fromJSONV1(json);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698