Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test updating the touch simulation `enabled` property
const {
toggleTouchSimulation,
add_task(async function () {
const store = Store();
const { getState, dispatch } = store;
ok(
!getState().ui.touchSimulationEnabled,
"Touch simulation is disabled by default."
);
dispatch(toggleTouchSimulation(true));
ok(getState().ui.touchSimulationEnabled, "Touch simulation is enabled.");
});