Preserve installed operator workspace before consolidation

Local preservation snapshot, not a new deployment or simulation acceptance.
This commit is contained in:
DCCONSTRUCTIONS
2026-10-08 09:59:51 +03:00
parent 97614742bb
commit d0e5f90952
368 changed files with 129172 additions and 1856 deletions
@@ -0,0 +1,23 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import ts from 'typescript';
import { Mat4, Vec3 } from 'playcanvas';
const source=readFileSync(new URL('../src/core/simulation/aiEditorCoordinates.ts',import.meta.url),'utf8');
const code=ts.transpileModule(source,{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
const {toEditor,toMission}=await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
test('editor glTF surface and Isaac mission coordinates roundtrip without reflection',()=>{
const p=[-134.744,38.807,1.527];
assert.deepEqual(toMission(toEditor(p)),p);
assert.deepEqual(toEditor([0,0,1]),[0,1,-0]);
const a=new Vec3(...toEditor([1,0,0])), b=new Vec3(...toEditor([0,1,0]));
assert.ok(new Vec3().cross(a,b).equals(new Vec3(...toEditor([0,0,1]))));
});
test('Riverside raw Gaussian rotation agrees with paired glTF collider',()=>{
const raw=new Vec3(-134.744,1.527,-38.807);
const native=new Mat4().setFromEulerAngles(90,0,0).transformPoint(raw);
const editor=new Mat4().setFromEulerAngles(-90,0,0).transformPoint(native);
assert.ok(editor.distance(raw)<1e-5);
const expected=toMission([raw.x,raw.y,raw.z]);
assert.ok(Math.hypot(native.x-expected[0],native.y-expected[1],native.z-expected[2])<1e-5);
});
@@ -0,0 +1,84 @@
import assert from 'node:assert/strict';
import {readFileSync} from 'node:fs';
import {test} from 'node:test';
import ts from 'typescript';
import {PerspectiveCamera,Vector3} from 'three';
async function source(name){
const code=ts.transpileModule(readFileSync(new URL(`../src/core/simulation/${name}.ts`,import.meta.url),'utf8'),{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText.replace('from "three"',`from "${import.meta.resolve('three')}"`);
return import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
}
const {panCamera,orbitCamera,navigationDepth}=await source('editorNavigation');
const {editWaypoints,waypointEditing,waypointShortcut}=await source('waypointEditing');
const {streamRecovery}=await source('streamRecovery');
const {panSensitivity,normalizePlannerPreferences}=await source('plannerPreferences');
test('pan follows the same pixel displacement at 2, 20 and 500 metre distances',()=>{
for(const distance of [2,20,500]){
const camera=new PerspectiveCamera(60,1.5,.05,3000);camera.position.set(0,0,distance);camera.updateMatrixWorld();
const anchor=new Vector3();const depth=navigationDepth(camera,anchor);
panCamera(camera,depth,120,-80,720);
const pixel=anchor.project(camera);
assert.ok(Math.abs(pixel.x*1080/2-120)<1e-8);
assert.ok(Math.abs(-pixel.y*720/2+80)<1e-8);
}
});
test('off-centre orbit pivot stays under cursor without jump, roll or radius drift',()=>{
const camera=new PerspectiveCamera(60,1.5,.05,3000);camera.position.set(0,5,10);camera.lookAt(0,0,0);camera.updateMatrixWorld();
const anchor=new Vector3(2,0,1),screen=anchor.clone().project(camera),radius=camera.position.distanceTo(anchor);
for(let i=0;i<20;i++){
orbitCamera(camera,anchor,8,3,720);
assert.ok(anchor.clone().project(camera).distanceTo(screen)<1e-10);
assert.ok(Math.abs(camera.position.distanceTo(anchor)-radius)<1e-10);
assert.ok(Math.abs(new Vector3(1,0,0).applyQuaternion(camera.quaternion).y)<1e-10);
}
});
const points=[{id:'a',position:[0,0,0]},{id:'b',position:[2,0,0]}];
test('selection never alters route; delete/undo restores order, coordinates and selection',()=>{
let s=waypointEditing(points);s=editWaypoints(s,{type:'select',id:'a'});s=editWaypoints(s,{type:'select',id:null});
assert.equal(s.history.length,0);assert.equal(s.sequence,0);
s=editWaypoints(s,{type:'select',id:'a'});s=editWaypoints(s,{type:'delete'});
assert.deepEqual(s.points,[points[1]]);assert.equal(s.selected,null);
s=editWaypoints(s,{type:'undo'});assert.deepEqual(s.points,points);assert.equal(s.selected,'a');assert.equal(s.sequence,2);
});
test('drag creates one undo entry, click none, canceled drag restores coordinates',()=>{
let s=editWaypoints(waypointEditing(points),{type:'select',id:'b'});
s=editWaypoints(s,{type:'begin'});s=editWaypoints(s,{type:'commit'});assert.equal(s.history.length,0);
s=editWaypoints(s,{type:'begin'});
for(let i=0;i<20;i++)s=editWaypoints(s,{type:'move',points:[points[0],{id:'b',position:[3+i,0,0]}]});
s=editWaypoints(s,{type:'commit'});assert.equal(s.history.length,1);
s=editWaypoints(s,{type:'undo'});assert.deepEqual(s.points,points);
s=editWaypoints(s,{type:'begin'});s=editWaypoints(s,{type:'move',points:[]});s=editWaypoints(s,{type:'cancel'});assert.deepEqual(s.points,points);
});
test('new task isolates history and shortcuts preserve native text editing',()=>{
let s=waypointEditing(points);s=editWaypoints(s,{type:'replace',points:[]});s=editWaypoints(s,{type:'load',points});
assert.equal(s.history.length,0);
const e={key:'z',code:'KeyZ',ctrlKey:false,metaKey:false,shiftKey:false,altKey:false};
assert.equal(waypointShortcut({...e,ctrlKey:true},false),'undo');assert.equal(waypointShortcut({...e,metaKey:true},false),'undo');
assert.equal(waypointShortcut({...e,metaKey:true},true),null);
assert.equal(waypointShortcut({...e,key:'Delete',code:'Delete'},false),'delete');
assert.equal(waypointShortcut({...e,key:'Backspace',code:'Backspace'},false),'delete');
assert.equal(waypointShortcut({...e,key:'Delete',code:'Delete',ctrlKey:true},false),null);
});
test('navigation preferences migrate, maintain ordered distances and interpolate smoothly',()=>{
const p=normalizePlannerPreferences({waypoint:{height:50},navigation:{nearDistance:3,farDistance:100,nearPan:.5,farPan:2}});
assert.equal(p.waypoint.height,50);assert.equal(p.navigation.zoom,1);
assert.equal(panSensitivity(1,p.navigation),.5);assert.equal(panSensitivity(200,p.navigation),2);
assert.equal(panSensitivity(51.5,p.navigation),1.25);
const bad=normalizePlannerPreferences({navigation:{nearDistance:50,farDistance:2,zoom:NaN}});
assert.equal(bad.navigation.farDistance,51);assert.equal(bad.navigation.zoom,1);
assert.deepEqual(normalizePlannerPreferences(JSON.parse(JSON.stringify(p))),p);
});
test('video watchdog bounds first-frame wait, stall recovery and retry count',()=>{
assert.equal(streamRecovery(19999,0,null,null,0),'wait');assert.equal(streamRecovery(20000,0,null,null,0),'retry');
assert.equal(streamRecovery(20000,0,null,null,2),'failed');assert.equal(streamRecovery(20000,0,15000,null,0),'wait');
assert.equal(streamRecovery(25000,0,15000,null,1),'retry');assert.equal(streamRecovery(5000,0,null,3000,2),'failed');
});
const {viewedAiRun}=await source('viewedAiRun');
test('catalog discovery of a run cannot claim an idle or historical viewer',()=>{
const old={run_id:'old',world:{world_id:'forest'}},live={run_id:'new',world:{world_id:'forest'}};
const catalog={runtime:{active_run:live},runs:[old,live]};
assert.equal(viewedAiRun(catalog,'forest',null),undefined);
assert.equal(viewedAiRun(catalog,'forest','old'),old);
assert.equal(viewedAiRun(catalog,'forest','new'),live);
assert.equal(viewedAiRun(catalog,'bamboo','new'),undefined);
});
@@ -0,0 +1,20 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import ts from 'typescript';
const code=ts.transpileModule(readFileSync(new URL('../src/core/simulation/planDraft.ts',import.meta.url),'utf8'),{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
const {planMatchesDraft}=await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
const points=[{id:'start',position:[0,0,0]},{id:'finish',position:[3,1,0]}];
const plan={editor_cache_key:'scene-v1',robot_sha256:'rover-v1',points};
test('editor launch reuses only the exact ordered saved route, including elevation',()=>{
assert.equal(planMatchesDraft(plan,'scene-v1','rover-v1',structuredClone(points)),true);
const moved=structuredClone(points);moved[1].position[2]=.2;
assert.equal(planMatchesDraft(plan,'scene-v1','rover-v1',moved),false);
assert.equal(planMatchesDraft(plan,'scene-v1','rover-v1',[...points].reverse()),false);
assert.equal(planMatchesDraft(plan,'scene-v1','rover-v1',points.slice(1)),false);
});
test('changed scene or rover requires a fresh task even when coordinates match',()=>{
assert.equal(planMatchesDraft(plan,'scene-v2','rover-v1',points),false);
assert.equal(planMatchesDraft(plan,'scene-v1','rover-v2',points),false);
assert.equal(planMatchesDraft(undefined,'scene-v1','rover-v1',points),false);
});
@@ -0,0 +1,51 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import ts from 'typescript';
async function source(name) {
const code=ts.transpileModule(readFileSync(new URL(`../src/core/simulation/${name}.ts`,import.meta.url),'utf8'),{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
return import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
}
const {normalizePlannerPreferences,DEFAULT_PLANNER_PREFERENCES,axisWorldLength}=await source('plannerPreferences');
const {zoomDisplacement}=await source('editorZoom');
test('preferences survive round trip, validate old/corrupt storage and clamp physical dimensions',()=>{
const value={...DEFAULT_PLANNER_PREFERENCES,waypoint:{...DEFAULT_PLANNER_PREFERENCES.waypoint,diameter:.8,height:3,color:'#00aaff',opacity:.5,frequency:0}};
assert.deepEqual(normalizePlannerPreferences(JSON.parse(JSON.stringify(value))),value);
assert.deepEqual(normalizePlannerPreferences(null),DEFAULT_PLANNER_PREFERENCES);
const invalid=normalizePlannerPreferences({pivot:{x:'url(x)',opacity:99},waypoint:{height:-9,diameter:NaN}});
assert.equal(invalid.pivot.x,DEFAULT_PLANNER_PREFERENCES.pivot.x);
assert.equal(invalid.pivot.opacity,1);assert.equal(invalid.waypoint.height,.2);assert.equal(invalid.waypoint.diameter,.35);
});
test('perspective projection preserves gizmo pixels at different depths and viewport heights',()=>{
for(const depth of [1,10,500])for(const height of [500,900,1600]) {
const projected=axisWorldLength(depth,height,105)/(2*depth*Math.tan(Math.PI/6))*height;
assert.ok(Math.abs(projected-105)<1e-8);
}
});
test('far zoom takes proportional steps and equal reverse wheel deltas return to original distance',()=>{
for(const depth of [2,20,200,2000]) {
const next=depth-zoomDisplacement(depth,80);
assert.ok(next>depth);
const restored=next-zoomDisplacement(next,-80);
assert.ok(Math.abs(restored-depth)<1e-8);
assert.ok(zoomDisplacement(depth,-80)>depth*.1);
}
});
const {waypointHit}=await source('waypointHit');
test('waypoint picks complete sides, caps and a camera inside the beam at any physical size',()=>{
for(const radius of [.025,.5,1.5])for(const height of [.2,5,50]) {
assert.notEqual(waypointHit([radius*.9,height*.9,5],[0,0,-1],[0,0,0],radius,height),null);
assert.notEqual(waypointHit([radius*.9,height+1,0],[0,-1,0],[0,0,0],radius,height),null);
assert.notEqual(waypointHit([0,height/2,0],[0,0,1],[0,0,0],radius,height),null);
assert.equal(waypointHit([radius*1.1,height/2,5],[0,0,-1],[0,0,0],radius,height),null);
}
});
test('world-size centroid preference migrates to independent pixel size; emission is bounded',()=>{
const prefs=normalizePlannerPreferences({navigation:{centroidDiameter:5},waypoint:{emission:20,emissionColor:'invalid'}});
assert.equal(prefs.navigation.centroidPixels,14);
assert.equal(prefs.waypoint.emission,5);
for(const depth of [1,30,300]) {
const pixels=axisWorldLength(depth,720,prefs.navigation.centroidPixels)/(2*depth*Math.tan(Math.PI/6))*720;
assert.ok(Math.abs(pixels-14)<1e-8);
}
});
@@ -0,0 +1,24 @@
import assert from "node:assert/strict";
import {readFileSync} from "node:fs";
import {test} from "node:test";
import ts from "typescript";
const code=ts.transpileModule(readFileSync(new URL("../src/core/simulation/roverSettings.ts",import.meta.url),"utf8"),
{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
const {defaultRoverSettings,validRoverSettings,parseRoverSettings,roverSettingsKey}=
await import(`data:text/javascript;base64,${Buffer.from(code).toString("base64")}`);
const robot={robot_id:"dcd006",sha256:"a".repeat(64),physics:{mass_kg:100,height_m:.734},control:{max_side_speed_mps:.3}};
test("speed and payload persist per robot revision, with finite physical bounds",()=>{
const initial=defaultRoverSettings(robot,.15);
const loaded={...initial,max_speed_mps:.2,payload_mass_kg:30,payload_height_m:.9};
assert.equal(initial.base_mass_kg,100);
assert.equal(initial.payload_height_m,.83);
assert.equal(validRoverSettings(loaded,robot),true);
assert.deepEqual(parseRoverSettings(JSON.stringify(loaded),robot),loaded);
assert.notEqual(roverSettingsKey(robot),roverSettingsKey({...robot,sha256:"b".repeat(64)}));
for(const patch of [{max_speed_mps:.4},{max_speed_mps:NaN},{base_mass_kg:0},{payload_mass_kg:-1},
{payload_height_m:Infinity},{max_speed_mps:"0.2"}]) {
assert.equal(validRoverSettings({...loaded,...patch},robot),false);
assert.equal(parseRoverSettings(JSON.stringify({...loaded,...patch}),robot),undefined);
}
assert.equal(parseRoverSettings(JSON.stringify({...loaded,unknown:1}),robot),undefined);
});
@@ -0,0 +1,56 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import ts from 'typescript';
async function source(name) {
const code=ts.transpileModule(readFileSync(new URL(`../src/core/simulation/${name}.ts`,import.meta.url),'utf8'),{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
return import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
}
const {dragWaypoint}=await source('waypointDrag'),{beltPose}=await source('roverMotion');
const motion=JSON.parse(readFileSync(new URL('../public/rover-scene/dcd006-v020-motion.json',import.meta.url)));
const near=(a,b)=>assert.ok(Math.abs(a-b)<1e-7,`${a} != ${b}`);
test('axis pivot only moves the selected coordinate, including elevation',()=>{
const p=[3,4,5],o=[8,12,16];
for(const [axis,index] of [['x',0],['y',1],['z',2]]) {
const target=[...p];target[index]+=2;
const result=dragWaypoint(o,target.map((v,i)=>v-o[i]),p,axis);
result.forEach((v,i)=>near(v,target[i]));
dragWaypoint(o,p.map((v,i)=>v-o[i]),p,axis).forEach((v,i)=>near(v,p[i]));
}
assert.equal(dragWaypoint([0,0,0],[1,0,0],p,'x'),null);
});
test('belt loops without a seam and reverse travel returns to the same position',()=>{
for(const side of ['L','R'])for(let i=0;i<44;i++) {
const a=beltPose(motion,-.8,side,i), b=beltPose(motion,motion.length_m-.8,side,i);
a.position.forEach((v,j)=>near(v,b.position[j]));near(Math.sin(a.angle),Math.sin(b.angle));
}
});
test('belt travels backward at ground contact, forward on the upper run, both sides aligned',()=>{
for(const [,start,length,d] of motion.segments.filter(s=>s[0]==='line')) {
const s=start+length/2-motion.phase_m;
const a=beltPose(motion,s,'L',0), b=beltPose(motion,s+.0001,'L',0);
near((b.position[0]-a.position[0])/.0001,d[2]);
near((b.position[1]-a.position[1])/.0001,d[3]);
const right=beltPose(motion,s,'R',0);near(a.position[0],right.position[0]);near(a.position[1],right.position[1]);
near(right.position[2]-a.position[2],motion.track_width_m);
}
});
test('local animated rig follows motion and freezes at zero input', async()=>{
const {Entity}=await import('playcanvas');
const mathCode=ts.transpileModule(readFileSync(new URL('../src/core/simulation/roverMotion.ts',import.meta.url),'utf8'),{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
const mathUrl=`data:text/javascript;base64,${Buffer.from(mathCode).toString('base64')}`;
let code=ts.transpileModule(readFileSync(new URL('../src/components/simulation/RoverTrackMotion.ts',import.meta.url),'utf8'),{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
code=code.replace('"../../core/simulation/roverMotion"',JSON.stringify(mathUrl));
const {RoverTrackMotion}=await import(`data:text/javascript;base64,${Buffer.from(code).toString('base64')}`);
const root=new Entity();
for(const side of ['L','R'])for(let i=0;i<44;i++)root.addChild(new Entity(`${side}_BELT_${String(i).padStart(2,'0')}`));
for(const w of motion.wheels)root.addChild(new Entity(w.node));
const rig=new RoverTrackMotion(root,motion);rig.update(.1,.3,0);
const expected=beltPose(motion,.03,'L',0), node=root.findByName('L_BELT_00');
const p=node.getLocalPosition();[p.x,p.y,p.z].forEach((v,i)=>near(v,expected.position[i]));
const before=node.getLocalRotation().clone();rig.update(.1,0,0);assert.ok(node.getLocalRotation().equals(before));
rig.update(.1,-.3,0);const atOrigin=beltPose(motion,0,'L',0), reset=node.getLocalPosition();
[reset.x,reset.y,reset.z].forEach((v,i)=>near(v,atOrigin.position[i]));
root.destroy();
});
@@ -0,0 +1,43 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import ts from 'typescript';
const source=ts.transpileModule(readFileSync(new URL('../src/core/simulation/runConfiguration.ts',import.meta.url),'utf8'),
{compilerOptions:{module:ts.ModuleKind.ESNext}}).outputText;
const {parseSavedSelection,currentSelection,runDurationSeconds,selectionStorageKey}=
await import(`data:text/javascript;base64,${Buffer.from(source).toString('base64')}`);
const selection={schema_version:'missioncore.observatory-ai-composition/v1',selections:[
{group:'segmentation',module_id:'outdoor-provider',module_sha256:'a'.repeat(64),parameters:{}},
{group:'policy',module_id:'mission',module_sha256:'b'.repeat(64),parameters:{environment:'park'}},
]};
const installed={selection:{...selection,selections:[]},catalog:{groups:[
{group:'segmentation',modules:[{moduleId:'outdoor-provider',moduleSha256:'c'.repeat(64),defaults:{}}]},
{group:'policy',modules:[{moduleId:'mission',moduleSha256:'d'.repeat(64),defaults:{environment:'natural'}}]},
]}};
test('stored per-location intent survives JSON; malformed, duplicate or foreign groups are rejected',()=>{
assert.deepEqual(parseSavedSelection(JSON.stringify(selection)),selection);
for(const value of [null,'broken',JSON.stringify({...selection,selections:[...selection.selections,selection.selections[0]]}),
JSON.stringify({...selection,selections:[{...selection.selections[0],group:'source'}]}),
JSON.stringify({...selection,selections:[{...selection.selections[0],parameters:[]} ]})]) {
assert.equal(parseSavedSelection(value),undefined);
}
assert.notEqual(selectionStorageKey('riverside','tracked'),selectionStorageKey('forest','tracked'));
assert.notEqual(selectionStorageKey('riverside','tracked'),selectionStorageKey('riverside','wheeled'));
});
test('alternative provider is rebound from full registry and park permissions survive an update',()=>{
const fresh=currentSelection(selection,installed);
assert.equal(fresh.selections[0].module_sha256,'c'.repeat(64));
assert.equal(fresh.selections[1].parameters.environment,'park');
assert.equal(selection.selections[0].module_sha256,'a'.repeat(64));
assert.throws(()=>currentSelection(selection,{...installed,catalog:{groups:[]}}),/недоступен/);
});
test('310 m at 0.15 m/s is not cut off by the old 30-minute ceiling; budgets stay bounded',()=>{
assert.ok(runDurationSeconds(310.34,.15)>310.34/.15+120);
assert.ok(runDurationSeconds(310.34,.15)>1800);
assert.equal(runDurationSeconds(3.4,.15),1800);
assert.equal(runDurationSeconds(100000,.01),7200);
for(const speed of [0,-1,NaN,Infinity])assert.equal(runDurationSeconds(310,speed),1800);
for(const length of [undefined,NaN,-1,Infinity])assert.equal(runDurationSeconds(length,.15),1800);
});
@@ -20,18 +20,20 @@ test("simulation is a dedicated Polygon workspace with a bounded feature slice",
assert.match(productModel, /id: "simulations"[\s\S]*root: "polygon"[\s\S]*kind: "simulations"/);
assert.match(workspaceHub, /case "simulations":[\s\S]*<SimulationWorkspace \/>/);
assert.match(catalog, /simulation-catalog__table/);
assert.match(workspace, /archivesFromDrop/);
assert.match(workspace, /uploadSimulationProjectSource/);
assert.match(catalog, /colSpan=\{3\}/);
assert.match(catalog, /Ожидает обработки/);
assert.match(catalog, /Прогресс \$\{roundedPercent\}% \|/);
assert.match(catalog, /Осталось примерно \$\{minutes\} мин/);
assert.match(catalog, /simulation-catalog__progress-track/);
assert.doesNotMatch(catalog, /disabled=\{ACTIVE_STATUSES\.has/);
assert.match(workspace, /<SimulationViewport[\s\S]*project=\{selected\}/);
assert.match(workspace, /<ConfirmationModal/);
assert.match(workspace, /if \(state === "building_streamed_sog"\) return "Сборка LOD"/);
assert.doesNotMatch(workspace, /\{selected\.provider\.state \?\? selected\.status\}/);
assert.match(workspace, /<AiPolygonWorkspace \/>/);
assert.doesNotMatch(workspace, /simulation-profile|LccGaussianWorkspace/);
assert.match(styles, /styles\/simulation\.css/);
});
@@ -69,12 +71,12 @@ test("browser upload remains same-origin, resumable and token-free", async () =>
test("failed simulation can restart from its retained Mission Core source", async () => {
const [core, workspace] = await Promise.all([
read("core/simulation/projects.ts"),
read("workspaces/simulation/SimulationWorkspace.tsx"),
read("components/simulation/SimulationSourceImport.tsx"),
]);
assert.match(core, /retrySimulationProject/);
assert.match(core, /\$\{API_ROOT\}\/\$\{encodeURIComponent\(projectId\)\}\/build/);
assert.match(workspace, /Повторить сборку/);
assert.match(workspace, /Повторить подготовку/);
});
test("PlayCanvas owns the realtime scene graph without an iframe or React entity tree", async () => {
@@ -97,7 +99,7 @@ test("PlayCanvas owns the realtime scene graph without an iframe or React entity
assert.match(runtime, /camera\.script\?\.create\(CameraControls/);
assert.match(runtime, /const HOME_POSITION = new Vec3\(0, 1, 0\)/);
assert.match(runtime, /const HOME_FOCUS = new Vec3\(1, 1, 0\)/);
assert.match(runtime, /maximum: \{[^}]*lodRangeMin: 0, lodRangeMax: 5, pixelRatio: 2, splatBudget: 4_000_000, targetFps: 60/);
assert.match(await read("core/simulation/gaussianQuality.ts"), /maximum: \{[^}]*lodRangeMin: 0, lodRangeMax: 5, pixelRatio: 2, splatBudget: 4_000_000, targetFps: 60/);
assert.match(runtime, /app\.scene\.gsplat\.splatBudget = profile\.splatBudget/);
assert.match(runtime, /app\.autoRender = false/);
assert.match(runtime, /app\.systems\.gsplat\?\.on\("frame:request", this\.requestGsplatFrame\)/);