- Introduced new methods in `Controller`, `EditorManager`, and `OverworldEditor` to access the `Overworld` instance, improving modularity and interaction with the overworld data. - Added `GetTile` method in `Overworld` to retrieve tile data based on coordinates, enhancing functionality for tile manipulation. - Implemented a new testing framework with automated GUI tests, including `CanvasSelectionTest` and `FrameworkSmokeTest`, to validate user interactions and ensure robustness. - Updated `CMakeLists.txt` to include new test files and dependencies, streamlining the build process for testing. - Refactored logging behavior to ensure proper file handling during logging operations, improving reliability in logging outputs.
20 lines
520 B
C++
20 lines
520 B
C++
#include "test_utils.h"
|
|
#include "app/core/controller.h"
|
|
|
|
namespace yaze {
|
|
namespace test {
|
|
namespace gui {
|
|
|
|
void LoadRomInTest(ImGuiTestContext* ctx, const std::string& rom_path) {
|
|
yaze::core::Controller* controller = (yaze::core::Controller*)ctx->Test->UserData;
|
|
controller->OnEntry(rom_path);
|
|
}
|
|
|
|
void OpenEditorInTest(ImGuiTestContext* ctx, const std::string& editor_name) {
|
|
ctx->MenuClick(absl::StrFormat("Editors/%s", editor_name).c_str());
|
|
}
|
|
|
|
} // namespace gui
|
|
} // namespace test
|
|
} // namespace yaze
|