Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test changing the display pixel ratio.
const {
changeDisplayPixelRatio,
const NEW_PIXEL_RATIO = 5.5;
add_task(async function () {
const store = Store();
const { getState, dispatch } = store;
equal(getState().ui.displayPixelRatio, 0, "Defaults to 0 at startup");
dispatch(changeDisplayPixelRatio(NEW_PIXEL_RATIO));
equal(
getState().ui.displayPixelRatio,
NEW_PIXEL_RATIO,
`Display Pixel Ratio changed to ${NEW_PIXEL_RATIO}`
);
});