Summary
On content/dashboard/testing.html, the Reset Zoom and ⏸ Pause / Live buttons in the bitrate chart toolbar do nothing when clicked.
Repro
- Open
http://localhost:30000/dashboard/testing.html (or test-dev :21000).
- Pick a session with an active bitrate chart.
- Click Reset Zoom — nothing happens.
- Click ⏸ Pause — nothing happens (label never flips to Live, no PAUSED overlay appears).
Likely cause
Both buttons are rendered by content/dashboard/testing-session-ui.js:
testing-session-ui.js:1090 — <button data-action="reset-bitrate-zoom">Reset Zoom</button>
testing-session-ui.js:1091 — <button data-action="pause-bitrate-chart">⏸ Pause</button>
testing-session.html wires them up in its click delegate:
testing-session.html:3951 — handles reset-bitrate-zoom
testing-session.html:3964 — handles pause-bitrate-chart
But testing.html's click delegate at testing.html:5183 has cases for apply-pattern, edit-pattern, add-shaping-step, clear-shaping-pattern, save-session, delete-session, etc. — and no cases for reset-bitrate-zoom or pause-bitrate-chart. The pause-state helpers (toggleChartPause, updatePauseButtonAndOverlays, installLiveWheelAnchor) exist in testing.html (lines ~2347–2407) and are wired to a chart-canvas click handler, but the toolbar buttons themselves are never bound.
Proposed fix
Add handlers in testing.html's click delegate that mirror testing-session.html:3951–3978:
reset-bitrate-zoom → look up the chart and call chart.resetZoom('none').
pause-bitrate-chart → call the existing toggleChartPause(sessionId).
Per the project convention (Cross-compare testing pages), keep behavior in sync with testing-session.html.
Summary
On
content/dashboard/testing.html, the Reset Zoom and ⏸ Pause / Live buttons in the bitrate chart toolbar do nothing when clicked.Repro
http://localhost:30000/dashboard/testing.html(or test-dev:21000).Likely cause
Both buttons are rendered by
content/dashboard/testing-session-ui.js:testing-session-ui.js:1090—<button data-action="reset-bitrate-zoom">Reset Zoom</button>testing-session-ui.js:1091—<button data-action="pause-bitrate-chart">⏸ Pause</button>testing-session.htmlwires them up in its click delegate:testing-session.html:3951— handlesreset-bitrate-zoomtesting-session.html:3964— handlespause-bitrate-chartBut
testing.html's click delegate attesting.html:5183has cases forapply-pattern,edit-pattern,add-shaping-step,clear-shaping-pattern,save-session,delete-session, etc. — and no cases forreset-bitrate-zoomorpause-bitrate-chart. The pause-state helpers (toggleChartPause,updatePauseButtonAndOverlays,installLiveWheelAnchor) exist intesting.html(lines ~2347–2407) and are wired to a chart-canvas click handler, but the toolbar buttons themselves are never bound.Proposed fix
Add handlers in
testing.html's click delegate that mirrortesting-session.html:3951–3978:reset-bitrate-zoom→ look up the chart and callchart.resetZoom('none').pause-bitrate-chart→ call the existingtoggleChartPause(sessionId).Per the project convention (Cross-compare testing pages), keep behavior in sync with
testing-session.html.