UFO: Alien Invasion
|
Test cases for code below client/ui/ when the global UI "engine" is started. More...
#include "test_shared.h"
#include "../client/cl_video.h"
#include "../client/cl_lua.h"
#include "../client/ui/ui_internal.h"
#include "../client/renderer/r_state.h"
Go to the source code of this file.
Data Structures | |
class | UILevel2Test |
Functions | |
static void | TEST_ParseScript (const char *scriptName) |
static void | UFO_AnalyseTestWindow (const char *windowName) |
after execution of a unittest window, it analyse color of normalized indicator, and create asserts. Both Fail/Pass asserts is useful to count number. More... | |
static void | UFO_ExecuteTestWindow (const char *windowName) |
Parse and execute a test windows. More... | |
TEST_F (UILevel2Test, KnownBehaviours) | |
test behaviour name More... | |
TEST_F (UILevel2Test, Actions) | |
test actions More... | |
TEST_F (UILevel2Test, Actions2) | |
test actions More... | |
TEST_F (UILevel2Test, Conditions) | |
test conditions More... | |
TEST_F (UILevel2Test, Functions) | |
test function More... | |
TEST_F (UILevel2Test, Setters) | |
test setters More... | |
TEST_F (UILevel2Test, Cvars) | |
test cvars More... | |
TEST_F (UILevel2Test, Components) | |
test components More... | |
TEST_F (UILevel2Test, InheritedConfunc) | |
test inherited confunc More... | |
TEST_F (UILevel2Test, RuntimeError) | |
test some runtime errors More... | |
TEST_F (UILevel2Test, Video) | |
test video nodes but ATM we only check it dont crash More... | |
TEST_F (UILevel2Test, CvarListener) | |
test cvarlistener nodes but ATM we only check it dont crash More... | |
TEST_F (UILevel2Test, Binding) | |
test key binding More... | |
TEST_F (UILevel2Test, Samples) | |
test if we can parse all samples More... | |
Test cases for code below client/ui/ when the global UI "engine" is started.
Definition in file test_ui_level2.cpp.
TEST_F | ( | UILevel2Test | , |
KnownBehaviours | |||
) |
test behaviour name
Definition at line 138 of file test_ui_level2.cpp.
References uiBehaviour_t::name, and UI_GetNodeBehaviour().
TEST_F | ( | UILevel2Test | , |
Actions | |||
) |
TEST_F | ( | UILevel2Test | , |
Actions2 | |||
) |
TEST_F | ( | UILevel2Test | , |
Conditions | |||
) |
test conditions
Definition at line 179 of file test_ui_level2.cpp.
References UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
Functions | |||
) |
test function
Definition at line 187 of file test_ui_level2.cpp.
References UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
Setters | |||
) |
TEST_F | ( | UILevel2Test | , |
Cvars | |||
) |
TEST_F | ( | UILevel2Test | , |
Components | |||
) |
test components
Definition at line 211 of file test_ui_level2.cpp.
References UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
InheritedConfunc | |||
) |
test inherited confunc
Definition at line 220 of file test_ui_level2.cpp.
References TEST_ParseScript(), and UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
RuntimeError | |||
) |
test some runtime errors
Definition at line 233 of file test_ui_level2.cpp.
References UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
Video | |||
) |
test video nodes but ATM we only check it dont crash
Definition at line 242 of file test_ui_level2.cpp.
References UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
CvarListener | |||
) |
test cvarlistener nodes but ATM we only check it dont crash
Definition at line 251 of file test_ui_level2.cpp.
References UFO_ExecuteTestWindow().
TEST_F | ( | UILevel2Test | , |
Binding | |||
) |
test key binding
Definition at line 260 of file test_ui_level2.cpp.
TEST_F | ( | UILevel2Test | , |
Samples | |||
) |
test if we can parse all samples
Definition at line 268 of file test_ui_level2.cpp.
References TEST_ParseScript().
|
static |
Definition at line 51 of file test_ui_level2.cpp.
References CL_ParseClientData(), Com_Printf(), FS_BuildFileList(), FS_NextScriptHeader(), name, and type.
Referenced by TEST_F(), and UFO_ExecuteTestWindow().
|
static |
after execution of a unittest window, it analyse color of normalized indicator, and create asserts. Both Fail/Pass asserts is useful to count number.
Definition at line 76 of file test_ui_level2.cpp.
References uiNode_t::behaviour, uiNode_t::color, uiNode_t::firstChild, uiNode_t::invis, uiNode_t::name, uiNode_t::next, Q_strstart(), UI_GetNodeBehaviour(), UI_GetWindow(), and va().
Referenced by UFO_ExecuteTestWindow().
|
static |
Parse and execute a test windows.
Definition at line 115 of file test_ui_level2.cpp.
References Cbuf_Execute(), Cmd_ExecuteString(), Com_Printf(), i, TEST_ParseScript(), UFO_AnalyseTestWindow(), and va().
Referenced by TEST_F().