1
0
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:
Haoyu Qiu
2022-04-26 20:03:11 +08:00
parent ab4bbdde90
commit 76343f4055
6 changed files with 464 additions and 0 deletions

View File

@@ -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;
}