Files
Sourcetrail/testing/graph_view/data/controls_tests.cpp
T
Eberhard GrätherandGitHub d13c21f6f3 ui/test: Manual testing fixes (#949)
* Fixed tooltip list items not activated on click
* Fixed crash when clearing focused graph edges after displaying graph with no edges
* Updated and fixed manual graph view tests
* Fixed previous location refocused when activating local symbol
* Fixed crash in graph view after showing empty graph
2020-03-29 23:32:49 +02:00

127 lines
2.7 KiB
C++

#define CONTROLS_TESTS
namespace image_export
{
struct Struct
{
static void foo() {};
};
class Base
{
virtual void foo() = 0;
};
class Center
: public Base
{
public:
void foo() // <- ACTION: activate foo()
{
Struct s;
Struct::foo();
member = 2;
}
protected:
int member;
};
class Derived
: public Center
{
void foo() {}
};
void bar()
{
Center c;
c.foo();
}
}
// TEST: move - drag
// START ----------------------------------------------------------------------
// ACTION: Click into graph void and drag
// RESULT: graph is moved
// END ------------------------------------------------------------------------
// TEST: move - Ctrl + Arrows
// START ----------------------------------------------------------------------
// ACTION: Use Ctrl + Arrows to scroll up, down, left, right
// RESULT: graph is moved
// END ------------------------------------------------------------------------
// TEST: zoom - buttons
// START ----------------------------------------------------------------------
// ACTION : Use screen zoom buttons bottom left
// RESULT: Zoom Level changes, percentage in lower left corner
// END ------------------------------------------------------------------------
// TEST: zoom - mouse wheel
// START ----------------------------------------------------------------------
// ACTION: Hold Shift and scroll in the graph
// RESULT: Zoom Level changes, percentage in lower left corner
// END ------------------------------------------------------------------------
// TEST: zoom - Shift + Ctrl + Up/Down
// START ----------------------------------------------------------------------
// ACTION: Hold Shift + Ctrl and press Up/Down
// RESULT: Zoom Level changes, percentage in lower left corner
// END ------------------------------------------------------------------------
// TEST: zoom reset
// START ----------------------------------------------------------------------
// ACTION: Press button '0'
// RESULT: Zoom level is reset
// END ------------------------------------------------------------------------
// TEST: image export
// START ----------------------------------------------------------------------
// ACTION: Export graph in every image format
// RESULT: compare to images in "results/controls_tests"
// END ------------------------------------------------------------------------
// TEST: legend
// START ----------------------------------------------------------------------
// ACTION 1: click '?' in lower right corner
// RESULT 1: graph legend is displayed
// ACTION 2: click on any node
// RESULT 2: nothing happens
// ACTION 3: go back and click any node
// RESULT 3: node is activated
// END ------------------------------------------------------------------------