| Index: third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-only-viewport.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-only-viewport.js b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-only-viewport.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3e3b6dbe4eec93657675e66f1438b3949649c7ff
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-only-viewport.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(0, 0, 0);
|
| +
|
| + 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(false)`));
|
| + testRunner.completeTest();
|
| +})
|
|
|