mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-26 01:13:47 -07:00
This commit is contained in:
22
hyprtester/src/tests/main/animations.cpp
Normal file
22
hyprtester/src/tests/main/animations.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "../../Log.hpp"
|
||||
#include "tests.hpp"
|
||||
#include "../../shared.hpp"
|
||||
#include "../../hyprctlCompat.hpp"
|
||||
#include <hyprutils/os/Process.hpp>
|
||||
#include <hyprutils/memory/WeakPtr.hpp>
|
||||
|
||||
static int ret = 0;
|
||||
|
||||
using namespace Hyprutils::OS;
|
||||
using namespace Hyprutils::Memory;
|
||||
|
||||
static bool test() {
|
||||
NLog::log("{}Testing animations", Colors::GREEN);
|
||||
|
||||
auto str = getFromSocket("/animations");
|
||||
NLog::log("{}Testing bezier curve output from `hyprctl animations`", Colors::YELLOW);
|
||||
{EXPECT_CONTAINS(str, std::format("beziers:\n\n\tname: quick\n\t\tX0: 0.15\n\t\tY0: 0.00\n\t\tX1: 0.10\n\t\tY1: 1.00"))};
|
||||
return !ret;
|
||||
}
|
||||
|
||||
REGISTER_TEST_FN(test)
|
Reference in New Issue
Block a user