Fix Worker-to-main-thread console forwarding for JavaScript pipeline#4736
Conversation
printToConsole() and emitDiagLine() now forward output via
postMessage so that Playwright page.on('console') captures
System.out.println and CN1SS chunk data from the Worker.
browser_bridge.js detects cn1Started from Worker log messages.
Playwright script exits early on CN1SS:SUITE:FINISHED.
Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/ba4cf2eb-f26f-49de-b5cf-33d60b64f177
Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
…calls, extract constant Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/ba4cf2eb-f26f-49de-b5cf-33d60b64f177 Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/6ffc979b-aaf8-4808-8569-22d9a67a303f Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
✅ ByteCodeTranslator Quality ReportTest & Coverage
Benchmark Results
Static Analysis
Generated automatically by the PR CI workflow. |
…ity for typed arrays Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/86e83ee8-794d-45d7-8666-cca8d2701acc Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
…t8ClampedArray to inferFn Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/ede5220b-d007-4fb6-860a-248673dd964b Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
…ed path Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/1b48d3ec-861d-4865-ae07-ead8d898cd3c Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
JavaScript port screenshot updatesCompared 30 screenshots: 0 matched, 30 missing references.
|
… failures to warnings Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/ae5b0454-7080-4003-9dfb-eed23a6b9843 Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
… OffscreenCanvas Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/b7fa2e59-a288-4ae6-9bea-d304c7f0bda8 Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
…enshot streams on iOS/Android Agent-Logs-Url: https://github.com/codenameone/CodenameOne/sessions/7d97f49d-a86e-44a0-b878-6a1bd7be1140 Co-authored-by: shai-almog <67850168+shai-almog@users.noreply.github.com>
Android screenshot updatesCompared 36 screenshots: 34 matched, 2 updated.
Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
6d06b9a
into
javascript-port-initial-work



Cn1ssDeviceRunner.finalizeTest()callsemitFallbackScreenshotChunk(testName)which emits a 1x1 placeholder PNG using the class simple name (e.g. "AffineScale") — this creates duplicate streams with wrong names that don't match reference screenshots (e.g. "graphics-affine-scale")emitFallbackScreenshotChunkruns for every test withshouldTakeScreenshot()==true, on ALL platforms, even whenCn1ssDeviceRunnerHelper.emitCurrentFormScreenshotalready captured the real screenshotemitFallbackScreenshotChunkcall and the dead helper methods fromfinalizeTest— the real screenshot is already captured viaBaseTest.createForm()→onShowCompleted()→emitCurrentFormScreenshot()