offset_x = int((1920 - 1360) / 2) #+ 1 # xfce decorations
offset_y = int((1080 - 768) / 2) #+ 24 + self._offset # xfce decorations
btn = 3 if btn == 'right' else 1
+ start = self._proxy.get_pos(start)
+ end = self._proxy.get_pos(end)
system('xdotool mousemove %s %s' % (offset_x + start[0], offset_y + start[1]))
def mousedown(task):
system('xdotool mousedown %s' % btn)
# self._screenshot(FunctionalTest.screenshot_time, 'domino_dragged')
# self._event(FunctionalTest.evt_time, 'mouseclick', [(1220, 740), 'left']) # rewind
# self._screenshot(FunctionalTest.screenshot_time, 'rewind')
- self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
# self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
#self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a piece .49 .06
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_domino_2')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left']) # play
- self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (570, 380), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', [(570, 355), (605, 355), 'right']) # rotate the piece
- self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (570, 380), 'left']) # drag a piece -1.54 .06
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_2', 'left']) # drag a piece -1.54 .06
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(570, 355), (605, 355), 'right']) # rotate the piece -1.05 .4
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_3', 'right']) # rotate the piece -1.54 .4 -1.05 .4
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
# scene 2
#self._event(FunctionalTest.evt_time, 'mouseclick', [(880, 490), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 620), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 540), 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 620), 'left']) # drag a box .42 -3.29
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box .42 -3.29
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 540), 'left']) # drag a box .42 -2.18
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a box .42 -2.18
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_box')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 620), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 540), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (705, 460), 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 620), 'left']) # drag a box
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box
+ # self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (710, 540), 'left']) # drag a box
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a box
+ # self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (705, 460), 'left']) # drag a box .35 -1.06
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_2', 'left']) # drag a box .35 -1.06
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
# scene 3
#self._event(FunctionalTest.evt_time, 'mouseclick', [(930, 485), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (910, 440), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (910, 360), 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (910, 440), 'left']) # drag a box 3.21 -.78
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box 3.21 -.78
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (910, 360), 'left']) # drag a box 3.21 .33
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a box 3.21 .33
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_box_domino')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (910, 440), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (835, 250), 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (910, 440), 'left']) # drag a box
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (835, 250), 'left']) # drag a box 2.16 1.87
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_2', 'left']) # drag a box 2.16 1.87
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
# scene 4
#self._event(FunctionalTest.evt_time, 'mouseclick', [(870, 490), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(55, 50), (650, 310), 'left']) # drag a ball
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(55, 50), (650, 310), 'left']) # drag a ball -.42 1.03
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a ball -.42 1.03
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_basketball')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(55, 50), (380, 50), 'left']) # drag a ball
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(55, 50), (380, 50), 'left']) # drag a ball -4.19 4.66
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a ball -4.19 4.66
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
# scene 5
#self._event(FunctionalTest.evt_time, 'mouseclick', [(865, 490), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (580, 440), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(30, 60), (590, 370), 'left']) # drag a piece
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (580, 440), 'left']) # drag a box -1.4 -.78
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box -1.4 -.78
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(30, 60), (590, 370), 'left']) # drag a piece -1.26 .2
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_1', 'left']) # drag a piece -1.26 .2
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_domino_box_basketball')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (580, 440), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(30, 60), (660, 440), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', [(660, 425), (625, 425), 'right']) # rotate a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', [(660, 435), (650, 445), 'left']) # drag a piece
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(65, 60), (580, 440), 'left']) # drag a box
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(30, 60), (660, 440), 'left']) # drag a piece -.28 -.78
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_2', 'left']) # drag a piece -.28 -.78
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(660, 425), (625, 425), 'right']) # rotate a piece -.28 -.57 -.77 -.57
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_2', 'drag_stop_3', 'right']) # rotate a piece -.28 -.57 -.77 -.57
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(660, 435), (650, 445), 'left']) # drag a piece -.28 -.85 -.42 -.85
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_3', 'drag_stop_4', 'left']) # drag a piece -.28 -.85 -.42 -.85
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
# scene 6
#self._event(FunctionalTest.evt_time, 'mouseclick', [(870, 485), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (490, 300), 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (490, 300), 'left']) # drag a box -2.65 1.18
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box -2.65 1.18
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_teeter_tooter')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (490, 150), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(515, 115), (515, 122), 'right']) # rotate a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (490, 150), 'left']) # drag a box -2.65 3.27
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a box -2.65 3.27
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(515, 115), (515, 122), 'right']) # rotate a box -2.3 3.75 -2.5 3.66
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_2', 'right']) # rotate a box -2.3 3.75 -2.5 3.66
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
# scene 7
#self._event(FunctionalTest.evt_time, 'mouseclick', [(930, 485), 'left']) # close instructions
self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (155, 180), 'left']) # drag a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (155, 180), 'left']) # drag a box -7.33 4.24
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a box -7.33 4.24
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])
self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_teeter_domino_box_basketball')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left'])
- self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (170, 80), 'left']) # drag a box
- self._event(FunctionalTest.drag_time, 'mousedrag', [(195, 50), (195, 80), 'right']) # rotate a box
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(60, 60), (170, 80), 'left']) # drag a box -7.12 4.24
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a box -7.12 4.24
+ #self._event(FunctionalTest.drag_time, 'mousedrag', [(195, 50), (195, 80), 'right']) # rotate a box -6.77 4.66 -6.77 4.24
+ self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_2', 'right']) # rotate a box -6.77 4.66 -6.77 4.24
self._enforce_res(FunctionalTest.evt_time, 'win')
#self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left'])