Esempio n. 1
0
    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'])
Esempio n. 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'])
Esempio n. 3
0
    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])
Esempio n. 4
0
    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])
Esempio n. 5
0
 def __init__(self, testinfo, appname, **kwargs):
     B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)
     self.scrolldown_amount = testinfo.get('scrolldown_amount')
Esempio n. 6
0
 def __init__(self, testinfo, appname, **kwargs):
     B2GAppActionTest.__init__(self, testinfo, appname, **kwargs)
     self.scrolldown_amount = testinfo.get('scrolldown_amount')
Esempio n. 7
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'))
Esempio n. 8
0
    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'])
Esempio n. 9
0
    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'])
Esempio n. 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'])
Esempio n. 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'))
Esempio n. 12
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'])