~vrruiz/cordova-ubuntu-tests/revert-r22

« back to all changes in this revision

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

  • Committer: Robert Bruce Park
  • Date: 2013-10-08 23:24:47 UTC
  • mfrom: (15.2.2 cordova-ubuntu-tests)
  • Revision ID: robert.park@canonical.com-20131008232447-cthzyqh9gy6ygcel
Autopilot: Fix path to Mobile Spec Suite

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    # mobile_spec_path = '/usr/share/cordova-ubuntu-tests/www/'
32
32
    LOCAL_WWW_DIR_PATH = os.path.abspath("%s/%s" % (os.path.dirname(os.path.realpath(__file__)),
33
33
        '../../../www/'))
34
 
    WWW_DIR_PATH = '/usr/share/cordova-ubuntu-tests/www/'
 
34
    WWW_DIR_PATH = '/usr/share/cordova-ubuntu-tests/cordovamobilespec/www/'
35
35
 
36
36
    def get_www_dir_path(self):
37
37
        if os.path.exists(self.WWW_DIR_PATH):
44
44
        return self.INSTALLED_CORDOVA_CONTAINER_PATH
45
45
 
46
46
    def setUp(self):
47
 
        print self.QML_LAUNCHER, self.LOCAL_CORDOVA_CONTAINER_PATH, self.get_cordova_container_path()
48
47
        params = [self.QML_LAUNCHER, self.get_cordova_container_path()]
49
48
        if (model() <> 'Desktop'):
50
 
            params.append('--desktop_file_hint=/usr/share/applications/unitywebappsqmllauncher.desktop')
 
49
            params.append('--desktop_file_hint=/usr/share/applications/cordova-ubuntu-tests.desktop')
51
50
        self.app = self.launch_test_application(
52
51
            *params,
53
52
            app_type='qt')