blob: 8eb0db3e1858dc8e04ecfc933e17c8a28b99cfcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const URL = "data:text/html,foo";
addRDMTaskWithPreAndPost(
URL,
async function pre({ browser }) {
info("Setting zoom");
// It's important that we do this so that we don't race with FullZoom's use
// of ContentSettings, which would reset the zoom.
FullZoom.setZoom(2.0, browser);
},
async function task({ browser, ui }) {
is(
ZoomManager.getZoomForBrowser(browser),
2.0,
"Zoom shouldn't have got lost"
);
// wait for the list of devices to be loaded to prevent pending promises
await waitForDeviceAndViewportState(ui);
},
async function post() {}
);
|