blob: d61f6358978ee1ef8813dd7fd8805a39966da749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#include <QtTest>
// add necessary includes here
class TestCursorNavigation : public QObject
{
Q_OBJECT
public:
TestCursorNavigation();
~TestCursorNavigation();
private slots:
void test_pluginLoading();
void test_registering();
void test_withKeyNavigation();
void test_spatial4Directions();
};
TestCursorNavigation::TestCursorNavigation()
{
}
TestCursorNavigation::~TestCursorNavigation()
{
}
void TestCursorNavigation::test_pluginLoading()
{
//test that the plugin loads and is available for use and a element with an attached property can be set
}
void TestCursorNavigation::test_registering()
{
//see that elements marked for accepting cursor are added to the engines element register
//adding the property should add item to the register
//deleting the item should unregister the item
//unsetting the property should unregister the item
}
void TestCursorNavigation::test_withKeyNavigation()
{
//test that element that additionally uses KeyNavigation, behaves primarily according to the KeyNavigation
//ie Cursor navigation plugin should not override KeyNavigation
//arrows + tab/backtab
}
void TestCursorNavigation::test_spatial4Directions()
{
//test the spatial algorithm in the basic 4 directional case
}
QTEST_APPLESS_MAIN(TestCursorNavigation)
#include "tst_cursornavigation.moc"
|