mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
fix(tests): 修复UI路由交互测试中的文档注释和代码块问题
- 为PopAsync测试方法添加了缺失的返回值XML文档注释 - 在Godot页面行为恢复逻辑中添加了正确的代码块括号 - 确保当ResumeFromShow为true时OnResume方法调用的条件判断正确
This commit is contained in:
parent
ef8530a379
commit
f7117254f8
@ -133,6 +133,7 @@ public class UiRouterInteractionTests
|
||||
/// <summary>
|
||||
/// 验证弹出栈顶页面后,恢复下层页面时不会重复触发恢复逻辑。
|
||||
/// </summary>
|
||||
/// <returns>表示异步测试执行过程的任务。</returns>
|
||||
[Test]
|
||||
public async Task PopAsync_WhenPageResumesDuringShow_DoesNotCallResumeTwice()
|
||||
{
|
||||
@ -343,7 +344,9 @@ public class UiRouterInteractionTests
|
||||
|
||||
// The Godot page behavior resumes from OnShow(), so the router must not call OnResume() again on top.
|
||||
if (ResumeFromShow)
|
||||
{
|
||||
OnResume();
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user