From 8299a15bf5459adb05810afccd6254e9b61c12b5 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Thu, 29 Apr 2021 11:27:37 -0700 Subject: [PATCH] Remove test that fails due to #216 Signed-off-by: Louise Poubel --- src/plugins/scene3d/Scene3D_TEST.cc | 58 ----------------------------- 1 file changed, 58 deletions(-) diff --git a/src/plugins/scene3d/Scene3D_TEST.cc b/src/plugins/scene3d/Scene3D_TEST.cc index b461cc475..8120ed751 100644 --- a/src/plugins/scene3d/Scene3D_TEST.cc +++ b/src/plugins/scene3d/Scene3D_TEST.cc @@ -17,12 +17,6 @@ #include #include -#include -#include -#include -#include -#include -#include #include #include "test_config.h" // NOLINT(build/include) @@ -63,55 +57,3 @@ TEST(Scene3DTest, IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Load)) plugins.clear(); } -///////////////////////////////////////////////// -TEST(Scene3DTest, IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config)) -{ - common::Console::SetVerbosity(4); - - Application app(g_argc, g_argv); - app.AddPluginPath(std::string(PROJECT_BINARY_PATH) + "/lib"); - - // Load plugin - const char *pluginStr = - "" - "ogre" - "banana" - "1.0 0 0" - "0 1 0" - "1 2 3 0 0 1.57" - ""; - - tinyxml2::XMLDocument pluginDoc; - pluginDoc.Parse(pluginStr); - EXPECT_TRUE(app.LoadPlugin("Scene3D", - pluginDoc.FirstChildElement("plugin"))); - - // Get main window - auto win = app.findChild(); - ASSERT_NE(nullptr, win); - - // Show, but don't exec, so we don't block - win->QuickWindow()->show(); - - // Check scene - auto engine = rendering::engine("ogre"); - ASSERT_NE(nullptr, engine); - - auto scene = engine->SceneByName("banana"); - ASSERT_NE(nullptr, scene); - - EXPECT_EQ(math::Color(0, 1, 0), scene->BackgroundColor()); - EXPECT_EQ(math::Color(1, 0, 0), scene->AmbientLight()); - - auto root = scene->RootVisual(); - ASSERT_NE(nullptr, root); - EXPECT_EQ(1u, root->ChildCount()); - - // Check camera - auto camera = std::dynamic_pointer_cast( - root->ChildByIndex(0)); - ASSERT_NE(nullptr, camera); - - EXPECT_EQ(math::Pose3d(1, 2, 3, 0, 0, 1.57), camera->WorldPose()); -} -