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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-980-2x.js

Issue 2960023003: [DevTools] Migrate inspector-protocol/emulation tests to new harness (Closed)
Patch Set: Created 3 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startBlank('Tests that device emula tion affects media rules, viewport meta tag, body dimensions and window.screen.' );
3
4 var DeviceEmulator = await testRunner.loadScript('../resources/device-emulator .js');
5 var deviceEmulator = new DeviceEmulator(testRunner, session);
6 await deviceEmulator.emulate(1200, 1000, 2);
7
8 var viewport = 'w=980';
9 testRunner.log(`Loading page with viewport=${viewport}`);
10 await session.navigate('../resources/device-emulation.html?' + viewport);
11
12 testRunner.log(await session.evaluate(`dumpMetrics(true)`));
13 testRunner.completeTest();
14 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698