Files
aego/tests/integration/assetsfolder_test.go
sanspie 515f4ca1b3 Stage 11a: animation (D333–D340, D344, D354–D357)
Clips (.aeanim) and controllers (.aectrl) with importers, AnimationPlayer and Animator with crossfades, root motion and events on fixed steps, rewind support. Editor: Animation panel (dope sheet, curves, record, preview, trajectory), Animator panel, sprite sheet slicer and flipbooks, Programming workspace, export panel redesign. Motion 2D ledge climb. 11c: the component and Create palette.
2026-10-25 15:31:22 +03:00

30 lines
720 B
Go

package integration
import (
"testing"
"aego/editor/core/workspace"
)
// Programming opens Assets on scripts; every workspace reopens Assets where it was left.
func TestAssetsFolderPerWorkspace(t *testing.T) {
s := workspaceSession(t)
ws, as := s.App.Workspace(), s.App.AssetsPanel()
ws.Switch(workspace.Programming)
s.Step()
if got := as.Folder(); got != "scripts" {
t.Fatalf("Programming opened %q", got)
}
as.SetFolder("scripts/player")
ws.Switch(workspace.Design)
s.Step()
if got := as.Folder(); got != "assets" {
t.Fatalf("Design opened %q", got)
}
ws.Switch(workspace.Programming)
s.Step()
if got := as.Folder(); got != "scripts/player" {
t.Fatalf("Programming came back to %q", got)
}
}