~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_calendar_app/emulators/main_window.py

  • Committer: Omer Akram
  • Date: 2013-05-27 15:09:40 UTC
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: om26er@ubuntu.com-20130527150940-15q8vpdfl52drukn
add initial autopilot tests structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
 
2
# Copyright 2012 Canonical
 
3
#
 
4
# This program is free software: you can redistribute it and/or modify it
 
5
# under the terms of the GNU General Public License version 3, as published
 
6
# by the Free Software Foundation.
 
7
 
 
8
"""Calendar app autopilot emulators."""
 
9
 
 
10
 
 
11
class MainWindow(object):
 
12
    """An emulator class that makes it easy to interact with the
 
13
    calendar-app.
 
14
 
 
15
    """
 
16
    def __init__(self, app):
 
17
        self.app = app
 
18
 
 
19
    def get_qml_view(self):
 
20
        """Get the main QML view"""
 
21
        return self.app.select_single("QQuickView")