Skip to content

Commit 1427476

Browse files
adamraineDevtools-frontend LUCI CQ
authored andcommitted
[lighthouse] Make Moto G Power the emulated mobile device
This should accompany the release of Lighthouse 10.0 which switches the default mobile device to the Moto G power. Lighthouse PR: GoogleChrome/lighthouse#14674 Bug: None Change-Id: I84154e10181d9c02e32daa70893b7ff4ce5905aa Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4219345 Reviewed-by: Connor Clark <[email protected]> Commit-Queue: Connor Clark <[email protected]>
1 parent 0eaaa17 commit 1427476

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

front_end/panels/lighthouse/LighthousePanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ export class LighthousePanel extends UI.Panel.Panel {
466466
emulationModel.deviceOutlineSetting().set(true);
467467

468468
for (const device of EmulationModel.EmulatedDevices.EmulatedDevicesList.instance().standard()) {
469-
if (device.title === 'Moto G4') {
469+
if (device.title === 'Moto G Power') {
470470
emulationModel.emulate(EmulationModel.DeviceModeModel.Type.Device, device, device.modes[0], 1);
471471
}
472472
}

test/e2e/lighthouse/devtools-settings_test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ describe('DevTools', function() {
105105

106106
const {artifacts} = await waitForResult();
107107
assert.deepStrictEqual(artifacts.ViewportDimensions, {
108-
innerHeight: 640,
109-
innerWidth: 360,
110-
outerHeight: 640,
111-
outerWidth: 360,
112-
devicePixelRatio: 3,
108+
innerHeight: 823,
109+
innerWidth: 412,
110+
outerHeight: 823,
111+
outerWidth: 412,
112+
devicePixelRatio: 1.75,
113113
});
114114

115115
const zoomText = await zoomButton.evaluate(zoomButtonEl => zoomButtonEl.textContent);

test/e2e/lighthouse/navigation_test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ describe('Navigation', async function() {
107107
}
108108

109109
assert.deepStrictEqual(artifacts.ViewportDimensions, {
110-
innerHeight: 640,
111-
innerWidth: 360,
112-
outerHeight: 640,
113-
outerWidth: 360,
114-
devicePixelRatio: 3,
110+
innerHeight: 823,
111+
innerWidth: 412,
112+
outerHeight: 823,
113+
outerWidth: 412,
114+
devicePixelRatio: 1.75,
115115
});
116116

117117
const {auditResults, erroredAudits, failedAudits} = getAuditsBreakdown(lhr);

test/e2e/lighthouse/snapshot_test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ describe('Snapshot', async function() {
6666
assert.strictEqual(lhr.gatherMode, 'snapshot');
6767

6868
assert.deepStrictEqual(artifacts.ViewportDimensions, {
69-
innerHeight: 640,
70-
innerWidth: 360,
71-
outerHeight: 640,
72-
outerWidth: 360,
73-
devicePixelRatio: 3,
69+
innerHeight: 823,
70+
innerWidth: 412,
71+
outerHeight: 823,
72+
outerWidth: 412,
73+
devicePixelRatio: 1.75,
7474
});
7575

7676
const {auditResults, erroredAudits, failedAudits} = getAuditsBreakdown(lhr);

0 commit comments

Comments
 (0)