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