~abreu-alexandre/ubuntu-html5-theme/fix-toolbar-swipe

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_html5_container/tests/test_appLaunch.py

Add a better cordova qml component search pattern for the cordovaview mostly to account for the cordova 3.4 version that is to be installed locally; Add autopilot tests for the container,. Fixes: https://bugs.launchpad.net/bugs/1277665.

Approved by PS Jenkins bot, Alexandre Abreu, David Barth.

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 2014 Canonical
 
3
#
 
4
# This program is free software: you can redistribute it and/or modify it
 
5
# under the terms of the GNU Lesser General Public License version 3, as published
 
6
# by the Free Software Foundation.
 
7
 
 
8
from __future__ import absolute_import
 
9
 
 
10
from testtools.matchers import Equals
 
11
 
 
12
from ubuntu_html5_container.tests import UbuntuHtml5LauncherTestCase
 
13
 
 
14
 
 
15
class UbuntuHtml5LauncherAppLaunchTestCase(UbuntuHtml5LauncherTestCase):
 
16
    def setUp(self):
 
17
        super(UbuntuHtml5LauncherAppLaunchTestCase, self).setUp()
 
18
 
 
19
    def test_launcherFailsWithNoWWW(self):
 
20
        self.launch_with_argument('')
 
21
        self.assertThat(self.get_app(), Equals(None))
 
22