summaryrefslogtreecommitdiff
path: root/tests/test_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_api.cpp')
-rw-r--r--tests/test_api.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_api.cpp b/tests/test_api.cpp
index bc54323..c5859cd 100644
--- a/tests/test_api.cpp
+++ b/tests/test_api.cpp
@@ -1,4 +1,5 @@
#include "yasl/native.h"
+#include "yasl/app.h"
#if YASL_HAS_WAYLAND
#include "yasl/native/wayland.h"
#endif
@@ -39,6 +40,21 @@ int main()
assert(yasl_loop_step(loop, 0) >= 0);
yasl_loop_destroy(loop);
+ yasl_message message{};
+ assert(!yasl_display_post(nullptr, &message));
+ assert(!yasl_frame_present(nullptr, nullptr, 0));
+ assert(!yasl_display_poll_event(nullptr, nullptr));
+ assert(!yasl_surface_set_size(nullptr, {640, 480}));
+ assert(!yasl_surface_set_fullscreen(nullptr, true));
+ assert(!yasl_surface_set_maximized(nullptr, true));
+ assert(!yasl_surface_minimize(nullptr));
+ assert(!yasl_surface_set_pacing(nullptr, YASL_PACING_CONTINUOUS));
+ assert(!yasl_surface_set_callbacks(nullptr, nullptr, nullptr));
+ assert(!yasl_clipboard_set(nullptr, YASL_CLIPBOARD, ""));
+ assert(!yasl_clipboard_request(nullptr, YASL_CLIPBOARD));
+ assert(!yasl_app_window(nullptr));
+ yasl_app_exit(nullptr, YASL_APP_ERROR);
+
yasl_event event{};
event.key.key = YASL_KEY_A;
assert(event.key.key == YASL_KEY_A);