blob: f585247cb6567922980253543663fc03a3fd4f8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
#include <unbox/ext-window-field/ext_window_field.hpp>
#include <unbox/kernel/extension.hpp>
// SCAFFOLD (Wave 3). Smoke test that the factory + manifest are wired. The
// owner-agent replaces/extends this with the real headless glue test (install
// ext-xdg-shell + ext-window-field on the wlr headless backend, map a real
// in-process client toplevel, and assert it becomes a listed surface element +
// that focus routes), mirroring ext-stage-dock's test_glue.cpp client-codegen.
TEST_CASE("ext-window-field: factory yields the window-field extension") {
auto ext = unbox::ext_window_field::create();
REQUIRE(ext != nullptr);
CHECK(ext->manifest().id == "window-field");
CHECK(ext->manifest().tier == unbox::kernel::Tier::core);
REQUIRE(ext->manifest().depends_on.size() == 1);
CHECK(ext->manifest().depends_on[0] == "xdg-shell");
}
|