Update ViewportCanvas tests to use EditorSimulationController
This commit is contained in:
@@ -12,8 +12,7 @@ import type { ArmedTerrainBrushState } from "../../src/core/terrain-brush";
|
|||||||
import { createBoxBrush } from "../../src/document/brushes";
|
import { createBoxBrush } from "../../src/document/brushes";
|
||||||
import { createEmptySceneDocument } from "../../src/document/scene-document";
|
import { createEmptySceneDocument } from "../../src/document/scene-document";
|
||||||
import { createTerrain } from "../../src/document/terrains";
|
import { createTerrain } from "../../src/document/terrains";
|
||||||
import { createRuntimeClockState } from "../../src/runtime-three/runtime-project-time";
|
import { EditorSimulationController } from "../../src/runtime-three/editor-simulation-controller";
|
||||||
import { buildRuntimeSceneFromDocument } from "../../src/runtime-three/runtime-scene-build";
|
|
||||||
import { ViewportCanvas } from "../../src/viewport-three/ViewportCanvas";
|
import { ViewportCanvas } from "../../src/viewport-three/ViewportCanvas";
|
||||||
import {
|
import {
|
||||||
createDefaultViewportPanelCameraState,
|
createDefaultViewportPanelCameraState,
|
||||||
@@ -31,6 +30,7 @@ const { MockViewportHost, viewportHostInstances } = vi.hoisted(() => {
|
|||||||
setRenderEnabled: ReturnType<typeof vi.fn>;
|
setRenderEnabled: ReturnType<typeof vi.fn>;
|
||||||
updateWorld: ReturnType<typeof vi.fn>;
|
updateWorld: ReturnType<typeof vi.fn>;
|
||||||
updateSimulation: ReturnType<typeof vi.fn>;
|
updateSimulation: ReturnType<typeof vi.fn>;
|
||||||
|
updateSimulationFrame: ReturnType<typeof vi.fn>;
|
||||||
updateAssets: ReturnType<typeof vi.fn>;
|
updateAssets: ReturnType<typeof vi.fn>;
|
||||||
updateDocument: ReturnType<typeof vi.fn>;
|
updateDocument: ReturnType<typeof vi.fn>;
|
||||||
updateSelection: ReturnType<typeof vi.fn>;
|
updateSelection: ReturnType<typeof vi.fn>;
|
||||||
@@ -64,6 +64,7 @@ const { MockViewportHost, viewportHostInstances } = vi.hoisted(() => {
|
|||||||
setRenderEnabled = vi.fn();
|
setRenderEnabled = vi.fn();
|
||||||
updateWorld = vi.fn();
|
updateWorld = vi.fn();
|
||||||
updateSimulation = vi.fn();
|
updateSimulation = vi.fn();
|
||||||
|
updateSimulationFrame = vi.fn();
|
||||||
updateAssets = vi.fn();
|
updateAssets = vi.fn();
|
||||||
updateDocument = vi.fn();
|
updateDocument = vi.fn();
|
||||||
updateSelection = vi.fn();
|
updateSelection = vi.fn();
|
||||||
|
|||||||
Reference in New Issue
Block a user