mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-18 11:02:10 +00:00
14 lines
413 B
C++
14 lines
413 B
C++
#include <output/MonitorZoomController.hpp>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
TEST(Render, monitorZoomDamagesActiveAndTransitionFrames) {
|
|
Monitor::CMonitorZoomController zoom;
|
|
|
|
EXPECT_FALSE(zoom.shouldDamageEntire(1.F));
|
|
EXPECT_TRUE(zoom.shouldDamageEntire(2.F));
|
|
EXPECT_TRUE(zoom.shouldDamageEntire(2.F));
|
|
EXPECT_TRUE(zoom.shouldDamageEntire(1.F));
|
|
EXPECT_FALSE(zoom.shouldDamageEntire(1.F));
|
|
}
|