chore: checkpoint current workspace changes
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
add_subdirectory(drag_drop_basic)
|
||||
add_subdirectory(keyboard_focus)
|
||||
add_subdirectory(popup_menu_overlay)
|
||||
add_subdirectory(pointer_states)
|
||||
add_subdirectory(scroll_view)
|
||||
add_subdirectory(shortcut_scope)
|
||||
|
||||
add_custom_target(core_ui_drag_drop_contract_validation
|
||||
DEPENDS
|
||||
core_ui_input_drag_drop_basic_validation
|
||||
)
|
||||
|
||||
add_custom_target(core_ui_input_integration_tests
|
||||
DEPENDS
|
||||
core_ui_input_drag_drop_basic_validation
|
||||
core_ui_input_keyboard_focus_validation
|
||||
core_ui_input_popup_menu_overlay_validation
|
||||
core_ui_input_pointer_states_validation
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
set(CORE_UI_INPUT_DRAG_DROP_BASIC_RESOURCES
|
||||
View.xcui
|
||||
${CMAKE_SOURCE_DIR}/tests/UI/Core/integration/shared/themes/core_validation.xctheme
|
||||
)
|
||||
|
||||
add_executable(core_ui_input_drag_drop_basic_validation WIN32
|
||||
main.cpp
|
||||
${CORE_UI_INPUT_DRAG_DROP_BASIC_RESOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(core_ui_input_drag_drop_basic_validation PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/tests/UI/Core/integration/shared/src
|
||||
${CMAKE_SOURCE_DIR}/engine/include
|
||||
)
|
||||
|
||||
target_compile_definitions(core_ui_input_drag_drop_basic_validation PRIVATE
|
||||
UNICODE
|
||||
_UNICODE
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(core_ui_input_drag_drop_basic_validation PRIVATE /utf-8 /FS)
|
||||
set_property(TARGET core_ui_input_drag_drop_basic_validation PROPERTY
|
||||
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
||||
endif()
|
||||
|
||||
target_link_libraries(core_ui_input_drag_drop_basic_validation PRIVATE
|
||||
core_ui_integration_host
|
||||
)
|
||||
|
||||
set_target_properties(core_ui_input_drag_drop_basic_validation PROPERTIES
|
||||
OUTPUT_NAME "XCUICoreDragDropContractValidation"
|
||||
)
|
||||
|
||||
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES View.xcui)
|
||||
19
tests/UI/Core/integration/input/drag_drop_basic/View.xcui
Normal file
19
tests/UI/Core/integration/input/drag_drop_basic/View.xcui
Normal file
@@ -0,0 +1,19 @@
|
||||
<View
|
||||
name="CoreInputDragDropContract"
|
||||
theme="../../shared/themes/core_validation.xctheme">
|
||||
<Column padding="24" gap="16">
|
||||
<Card
|
||||
title="测试内容:Core Drag / Drop Contract"
|
||||
subtitle="只验证 Core 层拖拽原语本身:激活阈值、target accept/reject、release 完成、以及 Escape / focus lost 取消。"
|
||||
tone="accent"
|
||||
height="206">
|
||||
<Column gap="8">
|
||||
<Text text="1. 按住左侧任一 source 后不要立刻松开;只有拖过激活阈值后才会进入 active。" />
|
||||
<Text text="2. 将 Texture Asset 拖到 Project Browser,应显示 accept,预览操作应解析为 Copy。" />
|
||||
<Text text="3. 将 Texture Asset 拖到 Hierarchy Parent,应显示 reject;此时松开只会取消,不会完成 drop。" />
|
||||
<Text text="4. 将 Scene Entity 拖到 Hierarchy Parent,应显示 accept;松开后应完成 Move。" />
|
||||
<Text text="5. active 期间按 Esc,或切走窗口触发 focus lost,应立即取消当前 drag。" />
|
||||
</Column>
|
||||
</Card>
|
||||
</Column>
|
||||
</View>
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
8
tests/UI/Core/integration/input/drag_drop_basic/main.cpp
Normal file
8
tests/UI/Core/integration/input/drag_drop_basic/main.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "Application.h"
|
||||
|
||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, LPWSTR, int nCmdShow) {
|
||||
return XCEngine::Tests::CoreUI::RunCoreUIValidationApp(
|
||||
hInstance,
|
||||
nCmdShow,
|
||||
"core.input.drag_drop_basic");
|
||||
}
|
||||
Reference in New Issue
Block a user