test: follow the #6717 render-scheduler signature; guard the burst reset for node harnesses
_scheduleMessageVirtualizedRender now takes (force, request), so the two structural probes in test_issue4346_vscroll_footer_jitter.py matched nothing. renderMessages() calls _resetMessageVirtualMeasurementBurst(), which node harnesses that extract renderMessages() alone (test_compaction_current_summary_fallback.py) don't define; guard it with typeof like the file's other optional helpers.
This commit is contained in:
1 parent
1633658fa5
commit
73d08d3cfb
2 files changed
+4
-3
No files matched your search
+2
-1
@@ -16640,7 +16640,8 @@ function _processWakeupCardHtml(info, rawText, extras){
|
||||
|
||||
function renderMessages(options){
|
||||
_lastMessageRenderAt=performance.now();
|
||||
if(!(options&&options._internalMeasurement)){ _resetMessageVirtualMeasurementBurst(); }
|
||||
// typeof guard: node harnesses extract renderMessages() without its helpers (#6717).
|
||||
if(!(options&&options._internalMeasurement) && typeof _resetMessageVirtualMeasurementBurst==='function'){ _resetMessageVirtualMeasurementBurst(); }
|
||||
const preserveScroll=!!(options&&options.preserveScroll);
|
||||
const virtualFallback=!!(options&&options._virtualFallback);
|
||||
// Capture the pre-wipe scroll position when preserving OR when the reader has
|
||||
|
||||
Reference in new issue
Block a user