コード例 #1
0
ファイル: settings.py プロジェクト: froydnj/eideticker
    def __init__(self, testinfo, appname, **kwargs):
        B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)

        self.cmds = []
        for i in range(5):
            self.cmds.append(['scroll_down'])
            self.cmds.append(['scroll_up'])
コード例 #2
0
 def __init__(self, testinfo, appname, **kwargs):
     B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)
     self.cmds = []
     num_swipes = 5
     for i in range(num_swipes):
         self.cmds.append(['scroll_down'])
     for i in range(num_swipes):
         self.cmds.append(['scroll_up'])
コード例 #3
0
ファイル: messages.py プロジェクト: rgfernandes/eideticker
    def __init__(self, testinfo, appname, **kwargs):
        B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)

        self.cmds = []
        # there aren't as many messages to scroll through, so we'll do a
        # bunch of scroll ups/scroll downs here (need a bit of extra padding
        # to make sure events go through correctly, at least on the
        # unagi/inari). this is all pretty lame but there you go ;)
        scroll_x1 = int(self.device.dimensions[0] / 2)
        scroll_y1 = self.device.deviceProperties["swipePadding"][0] + 40
        scroll_y2 = self.device.dimensions[1] - self.device.deviceProperties["swipePadding"][2]

        for i in range(10):
            self.cmds.append(["drag", scroll_x1, scroll_y1, scroll_x1, scroll_y2, 100, 10])
            self.cmds.append(["drag", scroll_x1, scroll_y1, scroll_x1, scroll_y2, 100, 10])
            self.cmds.append(["drag", scroll_x1, scroll_y2, scroll_x1, scroll_y1, 100, 10])
            self.cmds.append(["drag", scroll_x1, scroll_y2, scroll_x1, scroll_y1, 100, 10])
コード例 #4
0
ファイル: messages.py プロジェクト: ffledgling/eideticker
    def __init__(self, testinfo, appname, **kwargs):
        B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)

        self.cmds = []
        # there aren't as many messages to scroll through, so we'll do a
        # bunch of scroll ups/scroll downs here (need a bit of extra padding
        # to make sure events go through correctly, at least on the
        # unagi/inari). this is all pretty lame but there you go ;)
        scroll_x1 = int(self.device.dimensions[0] / 2)
        scroll_y1 = (self.device.deviceProperties['swipePadding'][0] + 40)
        scroll_y2 = (self.device.dimensions[1] -
                     self.device.deviceProperties['swipePadding'][2])

        for i in range(10):
            self.cmds.append(
                ['drag', scroll_x1, scroll_y1, scroll_x1, scroll_y2, 100, 10])
            self.cmds.append(
                ['drag', scroll_x1, scroll_y1, scroll_x1, scroll_y2, 100, 10])
            self.cmds.append(
                ['drag', scroll_x1, scroll_y2, scroll_x1, scroll_y1, 100, 10])
            self.cmds.append(
                ['drag', scroll_x1, scroll_y2, scroll_x1, scroll_y1, 100, 10])
コード例 #5
0
ファイル: callog.py プロジェクト: William-Hsu/eideticker
 def __init__(self, testinfo, appname, **kwargs):
     B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)
     self.scrolldown_amount = testinfo.get('scrolldown_amount')
コード例 #6
0
ファイル: callog.py プロジェクト: ffledgling/eideticker
 def __init__(self, testinfo, appname, **kwargs):
     B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)
     self.scrolldown_amount = testinfo.get('scrolldown_amount')
コード例 #7
0
ファイル: callog.py プロジェクト: davehunt/eideticker
 def __init__(self, testinfo, options, device, capture_controller):
     B2GAppActionTest.__init__(self, testinfo, options, device, capture_controller)
     self.scrolldown_amount = int(testinfo.get('scrolldown_amount'))
コード例 #8
0
ファイル: scrolldown.py プロジェクト: froydnj/eideticker
    def __init__(self, testinfo, appname, **kwargs):
        B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)

        self.cmds = []
        for i in range(int(testinfo.get('scrolldown_amount'))):
            self.cmds.append(['scroll_down'])
コード例 #9
0
ファイル: scrolldown.py プロジェクト: William-Hsu/eideticker
    def __init__(self, testinfo, appname, **kwargs):
        B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)

        self.cmds = []
        for i in range(int(testinfo.get('scrolldown_amount'))):
            self.cmds.append(['scroll_down'])
コード例 #10
0
 def __init__(self, testinfo, options, device, capture_controller):
     B2GAppActionTest.__init__(self, testinfo, options, device,
                               capture_controller)
     self.cmds = []
     for i in range(int(testinfo.get('scrolldown_amount'))):
         self.cmds.append(['scroll_down'])
コード例 #11
0
 def __init__(self, testinfo, options, device, capture_controller):
     B2GAppActionTest.__init__(self, testinfo, options, device,
                               capture_controller)
     self.scrolldown_amount = int(testinfo.get('scrolldown_amount'))
コード例 #12
0
ファイル: contacts.py プロジェクト: davehunt/eideticker
 def __init__(self, testinfo, options, device, capture_controller):
     B2GAppActionTest.__init__(self, testinfo, options, device,
                               capture_controller)
     self.cmds = []
     for i in range(int(testinfo.get('scrolldown_amount'))):
         self.cmds.append(['scroll_down'])