~nik90/ubuntu-clock-app/customize-splash

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_clock_app/emulators.py

  • Committer: Tarmac
  • Author(s): Nekhelesh Ramananthan
  • Date: 2014-10-11 11:57:59 UTC
  • mfrom: (139.1.9 delay-alarm-model-startup)
  • Revision ID: tarmac-20141011115759-4kznq76qxxp5chup
Improve startup time by delaying the  loading the alarm model at app startup. Fixes: https://bugs.launchpad.net/bugs/1362140.

Approved by Ubuntu Phone Apps Jenkins Bot, Riccardo Padovani.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        clockPage = self.open_clock()
55
55
        clockPage.reveal_bottom_edge_page()
56
56
        self.get_header().visible.wait_for(True)
57
 
        return self.wait_select_single(AlarmPage)
 
57
        return self.wait_select_single(Page11)
58
58
 
59
59
    def get_AlarmList(self):
60
60
        """ Get the AlarmList object. """
93
93
            action_item = self.wait_select_single(objectName='bottomEdgeTip')
94
94
            action_item.hiden.wait_for(False)
95
95
            action_item.enabled.wait_for(True)
 
96
            action_item.isAnimating.wait_for(False)
96
97
            start_x = (action_item.globalRect.x +
97
98
                       (action_item.globalRect.width * 0.5))
98
99
            start_y = (action_item.globalRect.y +
178
179
        self.pointing_device.click_object(deleteButton)
179
180
 
180
181
 
181
 
class AlarmPage(Page):
 
182
class Page11(Page):
182
183
    """Autopilot helper for the Alarm page."""
183
184
 
184
185
    @autopilot_logging.log_action(logger.info)