diff --git a/test/Window/Window.test.cpp b/test/Window/Window.test.cpp index ee7a082d8..49819401e 100644 --- a/test/Window/Window.test.cpp +++ b/test/Window/Window.test.cpp @@ -45,10 +45,7 @@ TEST_CASE("[Window] sf::Window", runDisplayTests()) CHECK(window.isOpen()); CHECK(window.getSize() == sf::Vector2u(360, 240)); CHECK(window.getNativeHandle() != sf::WindowHandle()); - CHECK(window.getSettings().stencilBits == 0); - CHECK(window.getSettings().antialiasingLevel == 0); CHECK(window.getSettings().attributeFlags == sf::ContextSettings::Default); - CHECK(!window.getSettings().sRgbCapable); } SECTION("Mode, title, and style constructor") @@ -57,10 +54,7 @@ TEST_CASE("[Window] sf::Window", runDisplayTests()) CHECK(window.isOpen()); CHECK(window.getSize() == sf::Vector2u(360, 240)); CHECK(window.getNativeHandle() != sf::WindowHandle()); - CHECK(window.getSettings().stencilBits == 0); - CHECK(window.getSettings().antialiasingLevel == 0); CHECK(window.getSettings().attributeFlags == sf::ContextSettings::Default); - CHECK(!window.getSettings().sRgbCapable); } SECTION("Mode, title, style, and context settings constructor") @@ -69,6 +63,9 @@ TEST_CASE("[Window] sf::Window", runDisplayTests()) CHECK(window.isOpen()); CHECK(window.getSize() == sf::Vector2u(360, 240)); CHECK(window.getNativeHandle() != sf::WindowHandle()); + CHECK(window.getSettings().depthBits >= 1); + CHECK(window.getSettings().stencilBits >= 1); + CHECK(window.getSettings().antialiasingLevel >= 1); } } @@ -82,10 +79,7 @@ TEST_CASE("[Window] sf::Window", runDisplayTests()) CHECK(window.isOpen()); CHECK(window.getSize() == sf::Vector2u(240, 360)); CHECK(window.getNativeHandle() != sf::WindowHandle()); - CHECK(window.getSettings().stencilBits == 0); - CHECK(window.getSettings().antialiasingLevel == 0); CHECK(window.getSettings().attributeFlags == sf::ContextSettings::Default); - CHECK(!window.getSettings().sRgbCapable); } SECTION("Mode, title, and style") @@ -94,10 +88,7 @@ TEST_CASE("[Window] sf::Window", runDisplayTests()) CHECK(window.isOpen()); CHECK(window.getSize() == sf::Vector2u(240, 360)); CHECK(window.getNativeHandle() != sf::WindowHandle()); - CHECK(window.getSettings().stencilBits == 0); - CHECK(window.getSettings().antialiasingLevel == 0); CHECK(window.getSettings().attributeFlags == sf::ContextSettings::Default); - CHECK(!window.getSettings().sRgbCapable); } SECTION("Mode, title, style, and context settings") @@ -106,6 +97,9 @@ TEST_CASE("[Window] sf::Window", runDisplayTests()) CHECK(window.isOpen()); CHECK(window.getSize() == sf::Vector2u(240, 360)); CHECK(window.getNativeHandle() != sf::WindowHandle()); + CHECK(window.getSettings().depthBits >= 1); + CHECK(window.getSettings().stencilBits >= 1); + CHECK(window.getSettings().antialiasingLevel >= 1); } } }