@@ -131,11 +131,6 @@ IndicatorTest {
131131 wait(1); // row seems to take a bit of time for item x values to update.
132132 }
133133
134− function cleanup() {
135− AccountsService.keymaps = [];
136− MockInputDeviceBackend.removeDevice("/kbd0");
137− }
138−
139134 function wait_for_expansion_to_settle() {
140135 tryCompare(heightAnimation, "running", false);
141136 wait(200); // put a little extra wait in for things to settle
@@ -309,7 +304,10 @@ IndicatorTest {
309304 AccountsService.keymaps = data.keymaps;
310305 if (data.keyboard) {
311306 MockInputDeviceBackend.addMockDevice("/kbd0", InputInfo.Keyboard);
307+ } else {
308+ MockInputDeviceBackend.removeDevice("/kbd0");
312309 }
310+
313311 compare(item.hidden, data.hidden);
314312 }
315313 }