test: Add a browser based test harness (#2641)

This commit is contained in:
Dermot Duffy
2026-07-31 10:16:58 -07:00
committed by GitHub
parent 51c0fab1ce
commit e590f72783
26 changed files with 2224 additions and 37 deletions
+4 -1
View File
@@ -24,8 +24,11 @@ interface AdvancedCameraCardActionHandlerOptions extends ActionHandlerOptions {
allowPropagation?: boolean;
}
// How long a press must last to count as a hold rather than a tap.
export const ACTION_HANDLER_HOLD_SECONDS = 0.4;
class ActionHandler extends HTMLElement implements ActionHandlerInterface {
public holdTime = 0.4;
public holdTime = ACTION_HANDLER_HOLD_SECONDS;
private holdTimer = new Timer();
private doubleClickTimer = new Timer();