Ejemplo n.º 1
0
 def test_dragtodel_dfm(self):
     dockobject_dfm = utils.getDdeDockObject()
     iconobj_dfm = dockobject_dfm.child(self.icon_dfm)
     self.assertTrue(iconobj_dfm.showing)
     starting_point = utils.getDockIconCenterPoint(iconobj_dfm)
     utils.mouseDrag(starting_point,
                     (starting_point[0], starting_point[1] - 100))
     iconobj_dfm_later = utils.getDdeDockObject().child(self.icon_dfm)
     self.assertFalse(iconobj_dfm_later.showing)
Ejemplo n.º 2
0
 def test_dragtodel_dmusic(self):
     pid = os.fork()
     if 0 == pid:
         (status, output) = getstatusoutput('google-chrome')
         os._exit(0)
     dockobject_dmusic = utils.getDdeDockObject()
     iconobj_dmusic = dockobject_dmusic.child(self.icon_dmusic)
     self.assertTrue(iconobj_dmusic.showing)
     # iconobj_dmusic.click()
     starting_point = utils.getDockIconCenterPoint(iconobj_dmusic)
     utils.mouseDrag(starting_point,
                     (starting_point[0], starting_point[1] - 100))
     iconobj_dmusic_later = utils.getDdeDockObject().child(self.icon_dmusic)
     self.assertFalse(iconobj_dmusic_later.showing)
 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"
 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.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)
Ejemplo n.º 6
0
 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)
Ejemplo n.º 7
0
    def testDragDockIconToDesktop(self):
        icongedit_icon = self.ddedockobject.child(self.gediticonname)
        self.assertTrue(icongedit_icon != None)
        fromXY = utils.getDockIconCenterPoint(icongedit_icon)
        utils.mouseDrag(fromXY, (fromXY[0], fromXY[1] - 100))

        ddedock = utils.getDdeDockObject()
        icongedit_icon_later = ddedock.child(self.gediticonname)
        self.assertTrue(None == icongedit_icon_later)
Ejemplo n.º 8
0
    def testDragDockIconToDesktop(self):
        iconscreenshot = self.ddedockobject.child(self.screenshoticonname)
        fromXY = utils.getDockIconCenterPoint(iconscreenshot)
        utils.mouseDrag(fromXY, (fromXY[0], fromXY[1] - 100))

        ddedock = utils.getDdeDockObject()
        iconscreenshot_later = ddedock.child(self.screenshoticonname)
        self.assertTrue((0, 0) == iconscreenshot_later.position)
        self.assertTrue((0, 0) == iconscreenshot_later.size)
Ejemplo n.º 9
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)
Ejemplo n.º 10
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)
Ejemplo n.º 11
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)
Ejemplo n.º 12
0
    def setUpClass(cls):
        cls.icon_sound = "sound-"
        cls.popup_name = "设备"
        cls.ddedockobject = utils.getDdeDockObject()

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

        if utils.getDdeDockDisplayMode != utils.dock.displaymode_fashion:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)
Ejemplo n.º 13
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)
Ejemplo n.º 14
0
    def testDragTerminalIconToDesktop(self):
        iconterminal = self.ddedockobject.child(self.terminaliconname)
        fromXY = utils.getDockIconCenterPoint(iconterminal)
        utils.mouseDrag(fromXY, (fromXY[0], fromXY[1] - 100))

        ddedock = utils.getDdeDockObject()
        try:
            iconterminal_later = ddedock.child(self.terminaliconname)
        except:
            self.assertTrue(True)
Ejemplo n.º 15
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)
Ejemplo n.º 16
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 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)
Ejemplo n.º 18
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)
Ejemplo n.º 19
0
    def setUpClass(cls):
        cls.casename = 'all-3547:hover 声音插件'
        cls.icon_sound = "sound-"
        cls.popup_percent = "70%"
        cls.ddedockobject = utils.getDdeDockObject()

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

        if utils.getDdeDockDisplayMode != utils.dock.displaymode_fashion:
            utils.setDdeDockDisplayMode(utils.dock.displaymode_fashion)
    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)
Ejemplo n.º 21
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)
Ejemplo n.º 22
0
    def setUpClass(cls):
        cls.defaultefficienticonlist = [
            "Launcher", "显示桌面", "多任务视图", "深度文件管理器", "深度商店", "深度音乐", "深度影院",
            "Google Chrome", "控制中心", "datetime-", "sound-", "shutdown-shutdown"
        ]

        cls.ddedockobject = utils.getDdeDockObject()

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

        if utils.dock.position_bottom != utils.getDdeDockPosition:
            utils.setDdeDockPosition(utils.dock.position_bottom)
Ejemplo n.º 23
0
    def setUpClass(cls):
        cls.defaultefficienticonlist = [
            "Show Desktop", "Multitasking View", "Deepin File Manager",
            "Deepin Store", "Deepin Music", "Deepin Movie", "Google Chrome",
            "Control Center", "datetime-", "sound-", "shutdown-shutdown"
        ]

        cls.ddedockobject = utils.getDdeDockObject()

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

        if utils.dock.position_bottom != utils.getDdeDockPosition:
            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.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)
Ejemplo n.º 25
0
    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 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 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 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.defaultfashioniconlist = ["Launcher",
                               "显示桌面",
                               "多任务视图",
                               "深度文件管理器",
                               "深度商店",
                               "深度音乐",
                               "Google Chrome",
                               "控制中心",
                               "system-tray-fashion-mode-item",
                               "shutdown-shutdown",
                               "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.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
     cls.dock_mainwindow = "dock-mainwindow"
Ejemplo n.º 32
0
 def setUpClass(cls):
     cls.casename = "all-2492:图标大小设置菜单"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
Ejemplo n.º 33
0
 def setUpClass(cls):
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()
     cls.defaulticonsize = utils.getDdeDockIconSize()
 def setUpClass(cls):
     cls.caseid = '68486'
     cls.casename = "all-2492:图标大小设置菜单"
     cls.ddedockobject = utils.getDdeDockObject()
     cls.defaultdisplaymode = utils.getDdeDockDisplayMode()
     cls.defaultposition = utils.getDdeDockPosition()