3
# Note: these tests need to be run with the default theme.
4
# The best way to do that is:
6
# unset DESKTOP_SESSION
7
# cairo-dock -T -d ~/test
9
# Usage: ./main.y [name of a test]
10
# In 'config.py', you can adjust some variables to fit your environment
14
from TestLauncher import TestLauncher
15
from TestCustomLauncher import TestCustomLauncher
16
from TestDockManager import TestDockManager
17
from TestModules import TestModules
18
from TestRootDock import TestRootDock, TestRootDock2
19
from TestSeparatorIcon import TestSeparatorIcon
20
from TestStackIcon import TestStackIcon
21
from TestTaskbar import TestTaskbar, TestTaskbar2
22
from TestIconManager import TestIconManager
24
from CairoDock import CairoDock
28
if __name__ == '__main__':
29
if len(sys.argv) > 1: # run the selected test
30
if sys.argv[1] == "TestLauncher":
31
TestLauncher(dock).run()
32
elif sys.argv[1] == "TestCustomLauncher":
33
TestCustomLauncher(dock).run()
34
elif sys.argv[1] == "TestModules":
35
TestModules(dock).run()
36
elif sys.argv[1] == "TestStackIcon":
37
TestStackIcon(dock).run()
38
elif sys.argv[1] == "TestSeparatorIcon":
39
TestSeparatorIcon(dock).run()
40
elif sys.argv[1] == "TestRootDock":
41
TestRootDock(dock).run()
42
elif sys.argv[1] == "TestRootDock2":
43
TestRootDock2(dock).run()
44
elif sys.argv[1] == "TestTaskbar":
45
TestTaskbar(dock).run()
46
elif sys.argv[1] == "TestTaskbar2":
47
TestTaskbar2(dock).run()
48
elif sys.argv[1] == "TestDockManager":
49
TestDockManager(dock).run()
50
elif sys.argv[1] == "TestIconManager":
51
TestIconManager(dock).run()
53
print ("Unknown test")
55
TestLauncher(dock).run()
56
TestCustomLauncher(dock).run()
57
TestModules(dock).run()
58
TestStackIcon(dock).run()
59
TestSeparatorIcon(dock).run()
60
TestRootDock(dock).run()
61
TestRootDock2(dock).run()
62
TestTaskbar(dock).run()
63
TestTaskbar2(dock).run()
64
TestDockManager(dock).run()
65
TestIconManager(dock).run()