2
from Test import Test, key, set_param
3
from CairoDock import CairoDock
6
class TestSeparatorIcon(Test):
7
def __init__(self, dock):
8
Test.__init__(self, "Test separator icon", dock)
11
# add a new separator-icon
12
conf_file = self.d.Add({'type':'Separator', 'order':'3'})
13
if conf_file == None or conf_file == "" or not os.path.exists(conf_file):
14
self.print_error ("Failed to add the separator")
16
# remove the separator
17
self.d.Remove('config-file='+conf_file)
18
if len (self.d.GetProperties('config-file='+conf_file)) != 0: # check that it has been deleted
19
self.print_error ("Failed to remove the separator")
21
if os.path.exists(conf_file): # check that it has been removed from the theme
22
self.print_error ("Failed to remove the separator from the theme")