test: Code view ui tests

This commit is contained in:
Eberhard Graether
2018-09-07 12:46:31 +02:00
parent 1a39f9ddc0
commit d2a99cbab2
17 changed files with 1119 additions and 0 deletions
+64
View File
@@ -0,0 +1,64 @@
namespace ERROR_TESTS
{
// TEST: show errors
// START ----------------------------------------------------------------------
// ACTION: click 'show errors' in the title bar
// RESULTS:
// - title bar shows 3 references
// - code shows 3 red locations
// - error table is shown at bottom of view with 3 errors
// - search view shows 'error error_tests.cpp'
// END ------------------------------------------------------------------------
// TEST: hover error
// START ----------------------------------------------------------------------
int x = y(); // <- ACTION: hover error locations
// RESULT: tooltip with error message is shown: use of undeclared identifier 'y'
// END ------------------------------------------------------------------------
// TEST: error activation
// START ----------------------------------------------------------------------
class Sample
{
public:
bool foo() const
{
something(); // <- ACTION: click on error
}
voi something()
{
}
};
// RESULT:
// - Error is highlighted in the error table
// - Reference navigation on top is updated with 2/3 references
// END ------------------------------------------------------------------------
// TEST: error iteration
// START ----------------------------------------------------------------------
// ACTION: use reference navigation on top back and forward
// RESULT: one error after another is activated and scrolled to
// END ------------------------------------------------------------------------
}