~mihirsoni/ubuntu-calendar-app/dateSelectNewEventTest

« back to all changes in this revision

Viewing changes to tests/autopilot/calendar_app/__init__.py

  • Committer: Tarmac
  • Author(s): Kunal Parmar
  • Date: 2014-10-22 21:23:07 UTC
  • mfrom: (515.1.7 MonthCompDelegate)
  • Revision ID: tarmac-20141022212307-gyoyiqqcw6pscwom
Moved month component delegate to different file.

Approved by Ubuntu Phone Apps Jenkins Bot, Mihir Soni.

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        month = self.get_selected_month()
251
251
        try:
252
252
            today = month.select_single(
253
 
                'QQuickItem', isCurrentMonth=True, isToday=True)
 
253
                'MonthComponentDateDelegate',
 
254
                isCurrentMonth=True, isToday=True)
254
255
        except exceptions.StateNotFoundError:
255
256
            raise CalendarException('No day is selected on the visible year.')
256
257
        else:
276
277
        month = self.get_month(monthNumber)
277
278
 
278
279
        try:
279
 
            day = month.select_single('QQuickItem', date=dayNumber)
 
280
            day = month.select_single('MonthComponentDateDelegate',
 
281
                                      date=dayNumber)
280
282
        except exceptions.StateNotFoundError:
281
283
            raise CalendarException('%s not found in %s' % (
282
284
                dayNumber, monthNumber))