~brandontschaefer/unity/lp.1239381-fix-7.0

« back to all changes in this revision

Viewing changes to tests/autopilot/unity/tests/test_panel.py

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2013-04-16 13:21:50 UTC
  • mto: This revision was merged to the branch mainline in revision 3306.
  • Revision ID: lukasz.zemczak@canonical.com-20130416132150-cd35uvkrz3p8ictr
During the test_window_buttons_show_when_holding_show_menu_key, wait for a menu settle period before continuing. The reason for this is that when by any chance the gedit application is already maximized on start, there is a timing condition that causes things to happen 'too fast' - and in the end, instead of a Alt press we get an Alt tap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
626
626
            maximized=True,
627
627
            move_to_monitor=True)
628
628
 
 
629
        self.sleep_menu_settle_period()
629
630
        self.assertThat(self.panel.window_buttons_shown, Eventually(Equals(False)))
630
631
 
631
632
        self.keybinding_hold("panel/show_menus")