Skip to content

Commit fd105b6

Browse files
test(ui): update OnDetachFromPanel test for new one-arg signature
OnDetachFromPanel no longer takes an Undo.UndoRedoCallback token - after the focus-refresh refactor it unregisters from statically-known handlers (OnUndoRedo, OnEditorFocusChanged) directly. Update the test to call the method with just the event argument. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent 2958ce9 commit fd105b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

UnityProject/Packages/com.jasonxudeveloper.jengine.ui/Tests/Editor/Internal/BootstrapEditorUITests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,9 @@ public void OnDetachFromPanel_DoesNotThrow()
773773
BindingFlags.NonPublic | BindingFlags.Static);
774774
Assert.IsNotNull(method, "OnDetachFromPanel method should exist");
775775

776-
Undo.UndoRedoCallback callback = () => { };
777-
Assert.DoesNotThrow(() => method.Invoke(null, new object[] { null, callback }));
776+
// Signature changed to take only the DetachFromPanelEvent (callbacks are now
777+
// unregistered from statically-known handlers rather than via a user token).
778+
Assert.DoesNotThrow(() => method.Invoke(null, new object[] { null }));
778779
}
779780

780781
[Test]

0 commit comments

Comments
 (0)