mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 07:42:23 +00:00
Give the voice test's stub row a classList.contains
focusDataLayerRow now asks whether the finder hides the row. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
00794de146
commit
4c4f24355f
1 file changed
+5
-1
@@ -1954,7 +1954,11 @@ test('showing a layer opens the panel that holds its row: Directions lives in Ut
|
|||||||
const focused = [];
|
const focused = [];
|
||||||
const rowIn = (panelId) => ({
|
const rowIn = (panelId) => ({
|
||||||
dataset: { layerName: panelId === 'utilities-panel' ? 'Directions' : 'Live Flights' },
|
dataset: { layerName: panelId === 'utilities-panel' ? 'Directions' : 'Live Flights' },
|
||||||
classList: { add: (name) => focused.push(name), remove() {} },
|
classList: {
|
||||||
|
add: (name) => focused.push(name),
|
||||||
|
remove() {},
|
||||||
|
contains: () => false,
|
||||||
|
},
|
||||||
scrollIntoView() {},
|
scrollIntoView() {},
|
||||||
closest: (selector) => (selector === '[data-panel-id]' ? { id: panelId } : null),
|
closest: (selector) => (selector === '[data-panel-id]' ? { id: panelId } : null),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user