feat(studio): adopt the 640x360 native graphics contract
Test / Tests and coverage
Intrepid/Prometeu/Studio/pipeline/head This commit looks good

Update the new JavaFX UI's frame sizing and pointer cancellation while
preserving zoom and scrolling. Adapt Pong, Fragments and the camera scene
to the native viewport, and update exact visual references and IPC fixtures.

Build and run all three examples against qualified installed runtimes.
Observe an actual Pong paddle collision and verify native frame captures.
Retain the qualification evidence generated for the tested native bundles.

Validated by the complete verify and desktop integration gates, including
the existing 30-second Play measurement and 20 Play/Stop cycles.

Work: WRK-0016 / DEC-0001 / PLN-0001
Commit and push explicitly authorized by the user after completion.
This commit is contained in:
2026-11-20 10:34:45 +00:00
parent 71b62a8e0a
commit 666a36d133
20 changed files with 13649 additions and 88 deletions
@@ -89,8 +89,8 @@ class StudioPlayDesktopTest {
fx(()->{assertTrue(stage.getScene().lookup("#runtime-path").isDisabled());return null;});
assertThrows(p.studio.api.automation.ControlDeniedException.class,()->access.enterManual(root));
fx(()->{ComboBox<Integer> zoom=(ComboBox<Integer>)stage.getScene().lookup("#viewport-zoom");zoom.setValue(4);
var image=(ImageView)stage.getScene().lookup("#game-image");assertEquals(1920,image.getFitWidth());assertFalse(image.isSmooth());
zoom.setValue(2);assertEquals(960,image.getFitWidth());zoom.setValue(1);assertEquals(480,image.getFitWidth());return null;});
var image=(ImageView)stage.getScene().lookup("#game-image");assertEquals(2560,image.getFitWidth());assertFalse(image.isSmooth());
zoom.setValue(2);assertEquals(1280,image.getFitWidth());zoom.setValue(1);assertEquals(640,image.getFitWidth());return null;});
// Deliver a real key edge through the viewport; Pong leaves its static menu.
// Zoom popup/native activation can transfer desktop focus. Establish the
// input precondition explicitly; the later focus-loss checks never resume.
@@ -219,6 +219,7 @@ class StudioPlayDesktopTest {
assertEquals(16,image.getFitWidth());
pointer(image,MouseEvent.MOUSE_PRESSED,6,6);assertEquals(new ExecutionInput(4096,1,1),input.get());
pointer(image,MouseEvent.MOUSE_DRAGGED,-1,6);assertEquals(0,input.get().buttons());assertEquals(-1,input.get().touchX());
pointer(image,MouseEvent.MOUSE_DRAGGED,6,6);assertEquals(0,input.get().buttons(),"Reentry while held must not recapture");
pointer(image,MouseEvent.MOUSE_PRESSED,14,6);assertEquals(new ExecutionInput(4096,3,1),input.get());
pointer(image,MouseEvent.MOUSE_RELEASED,30,30);assertEquals(0,input.get().buttons());
var surface=stage.getScene().lookup("#game-surface");