aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/harness/music_grid_probe.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/harness/music_grid_probe.py')
-rw-r--r--packages/meshbay-hub/tests/harness/music_grid_probe.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/harness/music_grid_probe.py b/packages/meshbay-hub/tests/harness/music_grid_probe.py
index da73b1f..4f5b0ce 100644
--- a/packages/meshbay-hub/tests/harness/music_grid_probe.py
+++ b/packages/meshbay-hub/tests/harness/music_grid_probe.py
@@ -103,7 +103,8 @@ import { MusicPlayerBar } from '/music-player.js';
const LOGS = [];
addEventListener('error', (e) => LOGS.push('error: ' + (e.message || e)));
addEventListener('unhandledrejection',
- (e) => LOGS.push('rejection: ' + ((e.reason && (e.reason.stack || e.reason.message)) || e.reason)));
+ (e) => LOGS.push('rejection: '
+ + ((e.reason && (e.reason.stack || e.reason.message)) || e.reason)));
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const waitFor = async (sel, tries = 60) => {
@@ -212,7 +213,8 @@ const clickMenu = async (i) => {
const last = rows[rows.length - 1];
const entry = { artist: label, top,
heading: heading ? heading.textContent : null,
- headingH: heading ? Math.round(heading.getBoundingClientRect().height) : null };
+ headingH: heading
+ ? Math.round(heading.getBoundingClientRect().height) : null };
if (last && Math.abs(last.top - top) < 8) last.cells.push(entry);
else rows.push({ top, cells: [entry] });
}