~xapantu/pantheon-terminal/tests

« back to all changes in this revision

Viewing changes to tests/test_window.py

  • Committer: xapantu
  • Date: 2013-06-17 20:13:23 UTC
  • Revision ID: xapantu@gmail.com-20130617201323-t2sj02wank0dc56u
Coord update, longer sleeps

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        self.keyboard.press_and_release('Ctrl+Shift+t')
29
29
 
30
30
        # Check we have 2 tabs
31
 
        sleep(0.5)
 
31
        sleep(1)
32
32
        self.assertThat(len(self.app.select_many("PantheonTerminalTerminalWidget")), Equals(2))
33
33
 
34
34
        # Close it
35
35
        self.keyboard.press_and_release('Ctrl+Shift+w')
36
36
 
37
37
        # Only 1 tab left
38
 
        sleep(0.5)
 
38
        sleep(1)
39
39
        self.assertThat(len(self.app.select_many("PantheonTerminalTerminalWidget")), Equals(1))
40
40
 
41
41
        # A new one, this time with the plus button
53
53
        # Let's open the tab in a new window
54
54
        class rect_window(object):
55
55
            center_x = pantheonwin.globalRect[0] + 100
56
 
            center_y = pantheonwin.globalRect[1] + 10
 
56
            center_y = pantheonwin.globalRect[1] + 20
57
57
        
58
58
        self.mouse.click_object(rect_window(), button=3)
59
59
        sleep(0.5)
69
69
        # Let's open the tab in a new window
70
70
        class rect_window(object):
71
71
            center_x = pantheonwin.globalRect[0] + 100
72
 
            center_y = pantheonwin.globalRect[1] + 10
 
72
            center_y = pantheonwin.globalRect[1] + 20
73
73
        
74
74
        self.mouse.click_object(rect_window(), button=3)
75
75
        sleep(0.5)