| Index: third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-dw.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-dw.js b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-dw.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00300ef3b682482f50814ed543d46a0348b1092a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-dw.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, 1);
|
| +
|
| + var viewport = 'w=dw';
|
| + testRunner.log(`Loading page with viewport=${viewport}`);
|
| + await session.navigate('../resources/device-emulation.html?' + viewport);
|
| +
|
| + testRunner.log(await session.evaluate(`dumpMetrics(true)`));
|
| + testRunner.completeTest();
|
| +})
|
|
|