Index: third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-2x.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-2x.js b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-2x.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d42b4f06bb5617389bd7a972fc4ba1c57be5eb64 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-2x.js |
@@ -0,0 +1,14 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startBlank('Tests that device emulation affects media rules, viewport meta tag, body dimensions and window.screen.'); |
+ |
+ var DeviceEmulator = await testRunner.loadScript('../resources/device-emulator.js'); |
+ var deviceEmulator = new DeviceEmulator(testRunner, session); |
+ await deviceEmulator.emulate(1200, 1000, 2); |
+ |
+ var viewport = 'w=980'; |
+ testRunner.log(`Loading page with viewport=${viewport}`); |
+ await session.navigate('../resources/device-emulation.html?' + viewport); |
+ |
+ testRunner.log(await session.evaluate(`dumpMetrics(true)`)); |
+ testRunner.completeTest(); |
+}) |