Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: devtools/client/memory/test/xpcshell/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test setting the filter string.
const {
setFilterString,
add_task(async function () {
const store = Store();
const { getState, dispatch } = store;
equal(getState().filter, null, "no filter by default");
dispatch(setFilterString("my filter"));
equal(getState().filter, "my filter", "now we have the expected filter");
dispatch(setFilterString(""));
equal(getState().filter, null, "no filter again");
});