diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b0c6d2b3..750e9983 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,4 +15,3 @@ add_subdirectory(math) add_subdirectory(utils) add_subdirectory(renderers) add_subdirectory(loaders) -add_subdirectory(canvas) diff --git a/tests/canvas/CMakeLists.txt b/tests/canvas/CMakeLists.txt deleted file mode 100644 index e084ed7d..00000000 --- a/tests/canvas/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ - -add_test_executable(headless_test) diff --git a/tests/canvas/headless_test.cpp b/tests/canvas/headless_test.cpp deleted file mode 100644 index d38960de..00000000 --- a/tests/canvas/headless_test.cpp +++ /dev/null @@ -1,28 +0,0 @@ - -#include "threepp/cameras/PerspectiveCamera.hpp" - - -#include - -#include -#include -#include - -using namespace threepp; - -TEST_CASE("Headless Tests", "[canvas]") { - - Canvas canvas("Headless window", {{"headless", true}, {"size", WindowSize(800, 800)}}); - GLRenderer renderer(canvas.size()); - - Scene scene; - scene.background = Color::aliceblue; - PerspectiveCamera camera(60, renderer.size().aspect(), 0.1f, 100.0f); - - renderer.render(scene, camera); - - std::string testFile = "test.jpg"; - renderer.writeFramebuffer(testFile); - - REQUIRE(std::filesystem::exists(testFile)); -}