~mutse-young/ubuntu-docviewer-app/trunk

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_docviewer_app/tests/test_docviewer.py

  • Committer: Tarmac
  • Author(s): Stefano Verzegnassi
  • Date: 2015-02-04 15:37:54 UTC
  • mfrom: (63.2.15 20-enable-zoom)
  • Revision ID: tarmac-20150204153754-1jrf9jzk34t9g3ho
Enable zoom in PDF view & multithreading support. Fixes: https://bugs.launchpad.net/bugs/1399978.

Approved by Ubuntu Phone Apps Jenkins Bot, Riccardo Padovani.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        self.launch_app()
64
64
 
65
65
        pdf = self.app.main_view.select_single(
66
 
            "QQuickListView", objectName="pdfView")
 
66
            "VerticalView", objectName="pdfView")
67
67
        self.assertThat(pdf.contentHeight,
68
68
                        Eventually(GreaterThan(0)))
69
69
 
78
78
 
79
79
        self.assertThat(
80
80
            self.app.main_view.select_single(
81
 
                "QQuickListView", objectName="pdfView").currentIndex,
 
81
                "VerticalView", objectName="pdfView").currentPageIndex,
82
82
            Eventually(Equals(int(page_no) - 1)))