Files
Sourcetrail/testing/keyboard_controls/data/history_tests.cpp
Eberhard GrätherandGitHub 3950da7999 src: Rename aggregation edge to bundled edges (#1051)
The term aggregation is misleading. Bundled edges is a better definition for this type of edge.

closes #962
2020-06-29 19:41:12 +02:00

60 lines
1.4 KiB
C++

#define HISTORY_TESTS
// TEST: Graph focus restored on back
// START ----------------------------------------------------------------------
class HistoryTest // <- ACTION: activate
{
public:
int member;
int member2;
};
int func()
{
HistoryTest h;
h.member = 0;
}
// ACTION: Focus and activate 'func' in graph
// ACTION: Navigate 'back' in history
// RESULT: The graph for 'HistoryTest' is restored with focus at 'func'
// END ------------------------------------------------------------------------
// TEST: Graph bundled edges focus restored on back
// START ----------------------------------------------------------------------
class HistoryTestUser
{
public:
int process()
{
h.member = 2;
h.member2 = 4;
}
HistoryTest h;
};
// ACTION: Focus and activate bundled edges 'HistoryTestUser -> HistoryTest'
// ACTION: Navigate 'back' in history
// RESULT: The graph for 'HistoryTest' is restored with focus at bundled edges edge
// END ------------------------------------------------------------------------
// TEST: Code focus restored on back
// START ----------------------------------------------------------------------
HistoryTest createTest(); // <- ACTION: focus and activate 'createTest' from code
// ACTION: Navigate 'back' in history
// RESULT: The code view is restored with focus at 'createTest'
// END ------------------------------------------------------------------------