~ubuntu-branches/ubuntu/utopic/notes-app/utopic-proposed

« back to all changes in this revision

Viewing changes to tests/autopilot/notes_app/tests/test_parts.py

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Bill Filler, Olivier Tilloy, Ubuntu daily release
  • Date: 2013-12-04 10:22:47 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20131204102247-r3ofl006h53ve8qm
Tags: 1.4+14.04.20131204-0ubuntu1
[ Bill Filler ]
* Use a different port for the test server when a zombie process
  doesn’t release the default one, and use a cleanup function instead
  of tearDown() for improved robustness.
* Make sure that clicking outside of the note on the header is
  recognized by enabling the flag that makes the InverseMouseArea the
  topmost item

[ Olivier Tilloy ]
* Use the standard UITK emulator for swipe-to-delete gesture and
  confirmation.
* Unskip some tests on desktop where they work just fine. (LP:
  #1190630)

[ Ubuntu daily release ]
* Automatic snapshot from revision 232

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    """ This is needed to wait for the application to start.
25
25
        In the testfarm, the application may take some time to show up."""
26
26
    def setUp(self):
 
27
        self.start_server()
27
28
        # Setup the database before starting the app
28
29
        self.setup_db()
29
30
        super(TestFocus, self).setUp()
31
32
    def setup_db(self):
32
33
        note_data = """{ "elements" : [
33
34
            {"content":"foobar","type":"text"},
34
 
            {"content":"http://localhost:8129/image.png","type":"image"}
35
 
        ]}"""
 
35
            {"content":"%s/image.png","type":"image"}
 
36
        ]}""" % self.base_url
36
37
        path = self.ensure_db()
37
38
        conn = sqlite3.connect(path)
38
39
        cursor = conn.cursor()