def testChangePosition(self):
     if utils.getDdeDockPosition() == utils.dock.position_bottom:
         utils.setDdeDockPosition(utils.dock.position_top)
     elif utils.getDdeDockPosition() == utils.dock.position_top:
         utils.setDdeDockPosition(utils.dock.position_right)
     elif utils.getDdeDockPosition() == utils.dock.position_right:
         utils.setDdeDockPosition(utils.dock.position_left)
Beispiel #2
0
 def testChangePosition(self):
     if utils.getDdeDockPosition() == utils.dock.position_bottom:
         utils.setDdeDockPosition(utils.dock.position_top)
     elif utils.getDdeDockPosition() == utils.dock.position_top:
         utils.setDdeDockPosition(utils.dock.position_right)
     elif utils.getDdeDockPosition() == utils.dock.position_right:
         utils.setDdeDockPosition(utils.dock.position_left)
 def testChangePosition(self):
     if utils.getDdeDockPosition() == utils.dock.position_bottom:
         self.testChangePositionTop()
     elif utils.getDdeDockPosition() == utils.dock.position_top:
         self.testChangePositionRight()
     elif utils.getDdeDockPosition() == utils.dock.position_right:
         self.testChangePositionLeft()
     elif utils.getDdeDockPosition() == utils.dock.position_left:
         self.testChangePositionBottom()
 def setUpClass(cls):
     cls.caseid = '68501'
     cls.casename = "all-2496:大图标在四个方向上显示"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
     cls.defaulticonsize = utils.getDdeDockIconSize()
 def setUpClass(cls):
     cls.caseid = '68458'
     cls.casename = "all-2483:时尚模式左方显示测试"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
     cls.dock_mainwindow = "dock-mainwindow"
Beispiel #6
0
 def setUpClass(cls):
     cls.icon_dfm = "深度文件管理器"
     cls.icon_dmusic = "深度音乐"
     if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
         utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)
     if utils.dock.position_bottom != utils.getDdeDockPosition():
         utils.setDdeDockPosition(utils.dock.position_bottom)
 def setUpClass(cls):
     cls.launchername = "deepin-appstore"
     cls.icon_deepinappstore = "深度商店"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
     if utils.dock.position_bottom != cls.defaultposition:
         utils.setDdeDockPosition(utils.dock.position_bottom)
    def tearDownClass(cls):
        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)

        cls.dbus_launcher.Hide()
 def setUpClass(cls):
     cls.launchername = "deepin-appstore"
     cls.icon_deepinappstore = "深度商店"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
     if utils.dock.position_bottom != cls.defaultposition:
         utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #10
0
 def tearDownClass(cls):
     if utils.getDdeDockDisplayMode() != utils.dock.displaymode_fashion:
         utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)
     if utils.getDdeDockPosition() != utils.dock.position_bottom:
         utils.setDdeDockPosition(utils.dock.position_bottom)
     os.system('killall chrome')
     DragDockiconToDel.AddApptoDock(cls.icon_dfm)
     DragDockiconToDel.AddApptoDock(cls.icon_dmusic)
Beispiel #11
0
    def setUpClass(cls):
        cls.testiconname = "trash-"
        cls.dock = Dock()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #12
0
    def setUpClass(cls):
        cls.chromeiconname = "Google Chrome"
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #13
0
    def tearDownClass(cls):
        if utils.getDdeDockDisplayMode() != utils.dock.displaymode_fashion:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.getDdeDockPosition() != utils.dock.position_bottom:
            utils.setDdeDockPosition(utils.dock.position_bottom)

        if utils.getDdeDockHideMode() != utils.dock.hidemode_keepshowing:
            utils.setDdeDockHideMode(utils.dock.hidemode_keepshowing)
Beispiel #14
0
    def tearDownClass(cls):
        if utils.getDdeDockDisplayMode() != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(cls.defaultdisplaymode)

        if utils.getDdeDockPosition() != cls.defaultposition:
            utils.setDdeDockPosition(cls.defaultposition)

        if utils.getDdeDockIconSize() != cls.defaulticonsize:
            utils.setDdeDockIconSize(cls.defaulticonsize)
    def tearDownClass(cls):
        global result
        utils.commitresult(cls.caseid, result)

        if utils.getDdeDockDisplayMode() != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(cls.defaultdisplaymode)

        if utils.getDdeDockPosition() != cls.defaultposition:
            utils.setDdeDockPosition(cls.defaultposition)
Beispiel #16
0
    def tearDownClass(cls):
        if utils.getDdeDockDisplayMode() != utils.dock.displaymode_fashion:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.getDdeDockPosition() != utils.dock.position_bottom:
            utils.setDdeDockPosition(utils.dock.position_bottom)

        if utils.getDdeDockIconSize() != utils.dock.iconsize_medium:
            utils.setDdeDockIconSize(utils.dock.iconsize_medium)
    def setUpClass(cls):
        cls.testiconname = "sound-"
        cls.dock = Dock()
        cls.ddecontrolcenter = Dde_control_center()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #18
0
    def setUpClass(cls):
        cls.filemanagericonname = "深度文件管理器"
        cls.filemanagerwindowname = "深度文件管理器"
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
 def testCheckDockSize(self):
     main_window = self.ddedockobject.child(self.dock_mainwindow)
     (width, height) = main_window.size
     position = utils.getDdeDockPosition()
     if position == utils.dock.position_top:
         self.assertTrue(height > 1,
                         " the size is : %s" % str(main_window.size))
     elif position == utils.dock.position_right or position == utils.dock.position_left:
         self.assertTrue(width > 1,
                         " the size is : %s" % str(main_window.size))
Beispiel #20
0
    def setUpClass(cls):
        cls.dock = Dock()
        cls.gediticonname = cls.dock.string_Text_Editor
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #21
0
    def setUpClass(cls):
        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition = utils.getDdeDockPosition()

        if utils.dock.displaymode_efficient != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_efficient)

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #22
0
    def setUpClass(cls):
        cls.dock = Dock()
        cls.screenshoticonname = cls.dock.string_Deepin_Screenshot
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #23
0
    def setUpClass(cls):
        cls.terminaliconname = "深度终端"
        cls.terminalwindowname = "deepin - 深度终端"
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
 def testBasicFunction(self):
     defaultdisplaymode = utils.getDdeDockDisplayMode()
     self.assertTrue(utils.dock.displaymode_fashion == defaultdisplaymode)
     defaultposition = utils.getDdeDockPosition()
     self.assertTrue(utils.dock.position_bottom == defaultposition)
     defaulthidestate = utils.getDdeDockHideState()
     self.assertTrue(utils.dock.hidestate_show == defaulthidestate)
     main_window = self.ddedockobject.child(self.dock_mainwindow)
     (width, height) = main_window.size
     self.assertTrue(width > 0)
     self.assertTrue(height > 0)
 def testBasicFunction(self):
     defaultdisplaymode = utils.getDdeDockDisplayMode()
     self.assertTrue(utils.dock.displaymode_fashion == defaultdisplaymode)
     defaultposition = utils.getDdeDockPosition()
     self.assertTrue(utils.dock.position_bottom == defaultposition)
     defaulthidestate = utils.getDdeDockHideState()
     self.assertTrue(utils.dock.hidestate_show == defaulthidestate)
     main_window = self.ddedockobject.child(self.dock_mainwindow)
     (width, height) = main_window.size
     self.assertTrue(width > 0)
     self.assertTrue(height > 0)
    def setUpClass(cls):
        cls.dock = Dock()
        cls.filemanagericonname = cls.dock.string_Deepin_File_Manager
        cls.filemanagerwindowname = cls.dock.string_Deepin_File_Manager
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #27
0
    def setUpClass(cls):
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.getDdeDockDisplayMode() != utils.dock.displaymode_fashion:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.getDdeDockPosition() != utils.dock.position_bottom:
            utils.setDdeDockPosition(utils.dock.position_bottom)

        if utils.getDdeDockIconSize() != utils.dock.iconsize_medium:
            utils.setDdeDockIconSize(utils.dock.iconsize_medium)
    def setUpClass(cls):
        cls.caseid = '68490'
        cls.casename = "all-2493:高效模式大图标显示"
        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition = utils.getDdeDockPosition()

        if utils.dock.displaymode_efficient != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_efficient)

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #29
0
    def setUpClass(cls):
        cls.dock = Dock()
        cls.dbus_launcher = DbusLauncher()
        cls.geidticonname = "Text Editor"
        cls.geidtwindowname = cls.dock.string_Text_Editor_Window1
        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #30
0
    def setUpClass(cls):
        cls.daemonnetwork = DaemonNetwork()
        cls.devices = cls.daemonnetwork.getActiveDevices()
        cls.testiconname = "network-" + cls.devices[0]
        cls.dock = Dock()
        cls.ddecontrolcenter = Dde_control_center()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
Beispiel #31
0
    def tearDownClass(cls):
        if utils.getDdeDockDisplayMode() != utils.dock.displaymode_fashion:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.getDdeDockPosition() != utils.dock.position_bottom:
            utils.setDdeDockPosition(utils.dock.position_bottom)

        if utils.getDdeDockHideMode() != utils.dock.hidemode_keepshowing:
            utils.setDdeDockHideMode(utils.dock.hidemode_keepshowing)

        win = utils.findWindow(cls.filemanager_windowname)
        if win != None:
            win.unmaximize()
            win.close(time.time())
    def testIconSizeLarge(self):
        launcher = self.ddedockobject.child("Launcher")
        dbus_iconsize = utils.getDdeDockIconSize()
        self.assertTrue(dbus_iconsize == utils.dock.iconsize_large)
        displaymode = utils.getDdeDockDisplayMode()
        calculate_iconsize_y = 0
        calculate_iconsize_x = 0
        if utils.dock.displaymode_fashion == displaymode:
            calculate_iconsize_y = int(dbus_iconsize * 1.5)
            calculate_iconsize_x = int(calculate_iconsize_y * 1.1)
        elif utils.dock.displaymode_efficient == displaymode:
            calculate_iconsize_y = int(dbus_iconsize * 1.2)
            calculate_iconsize_x = int(calculate_iconsize_y * 1.4)

        if utils.getDdeDockPosition() == utils.dock.position_top or \
           utils.getDdeDockPosition() == utils.dock.position_bottom:
            self.assertEquals((calculate_iconsize_x, calculate_iconsize_y),
                              launcher.size)
        elif utils.getDdeDockPosition() == utils.dock.position_right or \
           utils.getDdeDockPosition() == utils.dock.position_left:
            self.assertTrue(calculate_iconsize_x == launcher.size[0])
            self.assertTrue(calculate_iconsize_y > 1
                            and calculate_iconsize_y >= launcher.size[1])
    def setUpClass(cls):
        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition = utils.getDdeDockPosition()
        cls.defaulthidemode = utils.getDdeDockHideMode()
        cls.dock_mainwindow = "dock-mainwindow"
        cls.filemanager = "深度文件管理器"
        cls.filemanager_windowname = "深度文件管理器"

        if utils.dock.displaymode_fashion != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)
    def setUpClass(cls):
        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition = utils.getDdeDockPosition()
        cls.defaulthidemode = utils.getDdeDockHideMode()
        cls.dockmenuname = "DesktopMenu"

        if utils.dock.displaymode_efficient != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_efficient)

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)

        if utils.dock.hidemode_keepshowing != cls.defaulthidemode:
            utils.setDdeDockHideMode(utils.dock.hidemode_keepshowing)
 def testChangeDisplayModeToFashion(self):
     utils.m.click(int(utils.resolution.width/2), utils.resolution.height, 2)
     utils.dockmenu.findMainWindow()
     utils.keySingle(utils.k.down_key)
     utils.keySingle(utils.k.enter_key)
     displaymode = utils.getDdeDockDisplayMode()
     self.assertTrue(utils.dock.displaymode_fashion == displaymode)
     position = utils.getDdeDockPosition()
     self.assertTrue(utils.dock.position_bottom == position)
     hidestate = utils.getDdeDockHideState()
     self.assertTrue(utils.dock.hidestate_show == hidestate)
     main_window = self.ddedockobject.child(self.dock_mainwindow)
     (width, height) = main_window.size
     self.assertTrue(width > 0)
     self.assertTrue(height > 0)
 def testChangeDisplayModeToFashion(self):
     utils.m.click(int(utils.resolution.width/2), utils.resolution.height, 2)
     utils.dockmenu.findMainWindow()
     utils.keySingle(utils.k.down_key)
     utils.keySingle(utils.k.enter_key)
     displaymode = utils.getDdeDockDisplayMode()
     self.assertTrue(utils.dock.displaymode_fashion == displaymode)
     position = utils.getDdeDockPosition()
     self.assertTrue(utils.dock.position_bottom == position)
     hidestate = utils.getDdeDockHideState()
     self.assertTrue(utils.dock.hidestate_show == hidestate)
     main_window = self.ddedockobject.child(self.dock_mainwindow)
     (width, height) = main_window.size
     self.assertTrue(width > 0)
     self.assertTrue(height > 0)
    def testMoveMouseToDock(self):
        position = utils.getDdeDockPosition()
        if utils.dock.position_top == position:
            rawinput.absoluteMotion(int(utils.resolution.width / 2), 0)
        elif utils.dock.position_right == position:
            rawinput.absoluteMotion(utils.resolution.width,
                                    int(utils.resolution.height / 2))
        elif utils.dock.position_left == position:
            rawinput.absoluteMotion(0, int(utils.resolution.height / 2))

        time.sleep(3)
        main_window = self.ddedockobject.child(self.dock_mainwindow)
        (width, height) = main_window.size
        self.assertTrue(height > 1,
                        " the size is : %s" % str(main_window.size))
        self.assertTrue(width > 1, " the size is : %s" % str(main_window.size))
    def setUpClass(cls):
        cls.caseid = '33414'
        cls.casename = "all-437:一直隐藏"
        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition = utils.getDdeDockPosition()
        cls.defaulthidemode = utils.getDdeDockHideMode()
        cls.dock_mainwindow = "dock-mainwindow"
        cls.filemanager = "文件"
        cls.filemanager_windowname = "主文件夹"

        if utils.dock.displaymode_fashion != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)
    def tearDownClass(cls):
        global result
        utils.commitresult(cls.caseid, result)

        if utils.getDdeDockDisplayMode() != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(cls.defaultdisplaymode)

        if utils.getDdeDockPosition() != cls.defaultposition:
            utils.setDdeDockPosition(cls.defaultposition)

        if utils.getDdeDockHideMode() != cls.defaulthidemode:
            utils.setDdeDockHideMode(cls.defaulthidemode)

        google = cls.ddedockobject.child(cls.filemanager)
        win = utils.findWindow(cls.filemanager_windowname)
        if None != win:
            win.close(time.time())
    def setUpClass(cls):
        cls.daemonnetwork = DaemonNetwork()
        cls.devices = cls.daemonnetwork.getActiveDevices()
        cls.defaultfashioniconlist = [
            "Show Desktop", "Multitasking View", "Deepin File Manager",
            "Deepin Store", "Deepin Music", "Deepin Movie", "Google Chrome",
            "Control Center", "system-tray-fashion-mode-item", "datetime-",
            "shutdown-shutdown", "sound-", "trash-"
        ]

        cls.ddedockobject = utils.getDdeDockObject()

        if utils.dock.displaymode_fashion != utils.getDdeDockDisplayMode():
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)

        if utils.dock.position_bottom != utils.getDdeDockPosition():
            utils.setDdeDockPosition(utils.dock.position_bottom)
    def setUpClass(cls):
        cls.defaultefficienticonlist = ["Launcher",
                                        "显示桌面",
                                        "多任务视图",
                                        "文件",
                                        "深度商店",
                                        "深度音乐",
                                        "Google Chrome",
                                        "控制中心",
                                        "datetime-"]

        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition    = utils.getDdeDockPosition()

        if utils.dock.displaymode_efficient != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_efficient)

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)
 def testChangePositionToLeft(self):
     utils.m.click(int(utils.resolution.width/2), utils.resolution.height, 2)
     utils.dockmenu.findMainWindow()
     utils.keySingle(utils.k.down_key)
     utils.keySingle(utils.k.left_key)
     utils.keySingle(utils.k.down_key)
     utils.keySingle(utils.k.down_key)
     utils.keySingle(utils.k.down_key)
     utils.keySingle(utils.k.enter_key)
     defaultdisplaymode = utils.getDdeDockDisplayMode()
     self.assertTrue(utils.dock.displaymode_fashion == defaultdisplaymode)
     defaultposition = utils.getDdeDockPosition()
     self.assertTrue(utils.dock.position_left == defaultposition)
     defaulthidestate = utils.getDdeDockHideState()
     self.assertTrue(utils.dock.hidestate_show == defaulthidestate)
     main_window = self.ddedockobject.child(self.dock_mainwindow)
     (width, height) = main_window.size
     self.assertTrue(width > 0)
     self.assertTrue(height > 0)
     (x, y) = main_window.position
     self.assertTrue(0 == x)
    def setUpClass(cls):
        cls.defaultfashioniconlist = ["Launcher",
                               "显示桌面",
                               "多任务视图",
                               "文件",
                               "深度商店",
                               "深度音乐",
                               "Google Chrome",
                               "控制中心",
                               "system-tray-fashion-mode-item",
                               "datetime-"]

        cls.ddedockobject = utils.getDdeDockObject()
        cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
        cls.defaultposition    = utils.getDdeDockPosition()

        if utils.dock.position_bottom != cls.defaultposition:
            utils.setDdeDockPosition(utils.dock.position_bottom)

        if utils.dock.displaymode_fashion != cls.defaultdisplaymode:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)
 def setUpClass(cls):
     cls.caseid = '68486'
     cls.casename = "all-2492:图标大小设置菜单"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()