You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Validate theme type/item names
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include "test_render.h"
|
||||
#include "test_shader_lang.h"
|
||||
#include "test_string.h"
|
||||
#include "test_theme.h"
|
||||
#include "test_transform.h"
|
||||
#include "test_xml_parser.h"
|
||||
|
||||
@@ -69,6 +70,7 @@ const char **tests_get_names() {
|
||||
"ordered_hash_map",
|
||||
"astar",
|
||||
"xml_parser",
|
||||
"theme",
|
||||
nullptr
|
||||
};
|
||||
|
||||
@@ -150,6 +152,10 @@ MainLoop *test_main(String p_test, const List<String> &p_args) {
|
||||
return TestXMLParser::test();
|
||||
}
|
||||
|
||||
if (p_test == "theme") {
|
||||
return TestTheme::test();
|
||||
}
|
||||
|
||||
print_line("Unknown test: " + p_test);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user