| 82 | using Quake4WorldspawnColourTest = EmptyQuake4Setup; |
| 83 | |
| 84 | TEST_F(Quake4WorldspawnColourTest, SchemeBrushColourIsUsed) |
| 85 | { |
| 86 | // File system should be loaded and ready |
| 87 | EXPECT_TRUE(GlobalFileSystem().isInitialised()); |
| 88 | |
| 89 | // This setup doesn't have a worldspawn |
| 90 | EXPECT_FALSE(GlobalEntityClassManager().findClass("worldspawn")); |
| 91 | |
| 92 | // Create a worldspawn |
| 93 | auto worldspawn = GlobalMapModule().findOrInsertWorldspawn(); |
| 94 | |
| 95 | // The eclass wire shader should match the colour defined in the scheme |
| 96 | const auto& schemeColour = GlobalColourSchemeManager().getActiveScheme().getColour("default_brush").getColour(); |
| 97 | EXPECT_EQ(Node_getEntity(worldspawn)->getEntityClass()->getColour(), Vector4(schemeColour, 1)); |
| 98 | } |
| 99 | |
| 100 | TEST_F(RadiantTest, SchemeBrushColourIsUsed) |
| 101 | { |
nothing calls this directly
no test coverage detected