~dobey/ubuntuone-control-panel/update-3-0

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/tests/test_controlpanel.py

  • Committer: Tarmac
  • Author(s): Roberto Alsina, Brian Curtin, Natalia B. Bidart
  • Date: 2012-03-27 19:35:42 UTC
  • mfrom: (255.1.2 stable-3-0-update-2.99.91.1)
  • Revision ID: tarmac-20120327193542-f1omhul1co3ik82e
Tags: release-2_99_91_1
[ Natalia B. Bidart <natalia.bidart@canonical.com> ]
  - Isolate linux specific styling hacks to avoid weird side effects
    on windows (LP: #961229).
  - Handle errors from backend on the signin wizard page (LP: #945078).
  - Avoid the 'show/hide details' button to grow when focused (LP: #961348).
  - Modified stylesheet to use the new colours from brand, and to also ease
    the reading of white text (LP: #956077).
  - Fixed the gap tab outlines (LP: #822629).

[ Brian Curtin <brian.curtin@canonical.com> ]
  - Add Ubuntu One to the Windows auto-start registry key.
  - Made the creation of symlinks a separated test case so it can be
    skipped on Windows.
  - Better cleanup in tests -- allow the rest of the test suite to
    complete. Fix courtesy of Natalia Bidart.

[ Roberto Alsina <roberto.alsina@canonical.com> ]
  - Made the license page from the wizard be shown (only when called
    with --installer) (LP: #933697).
  - Forced white background (LP: #961346).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
 
 
3
 
# Authors: Natalia B Bidart <natalia.bidart@canonical.com>
4
2
#
5
 
# Copyright 2011 Canonical Ltd.
 
3
# Copyright 2011-2012 Canonical Ltd.
6
4
#
7
5
# This program is free software: you can redistribute it and/or modify it
8
6
# under the terms of the GNU General Public License version 3, as published
186
184
        remote = self.ui.ui.folders_tab.remote_folders
187
185
        self.assertFalse(remote)
188
186
 
 
187
    def test_start_from_license(self):
 
188
        """Ensure we change the starting page correctly."""
 
189
        # Before, we start on sign_in
 
190
        self.assertEqual(self.ui.ui.wizard.startId(),
 
191
            self.ui.ui.wizard.pages[self.ui.ui.wizard.signin_page])
 
192
        # After, we start on license_page
 
193
        self.ui.start_from_license()
 
194
        self.assertEqual(self.ui.ui.wizard.startId(),
 
195
            self.ui.ui.wizard.pages[self.ui.ui.wizard.license_page])
 
196
 
189
197
 
190
198
class ExternalLinkButtonsTestCase(ControlPanelTestCase):
191
199
    """The link in the go-to-web buttons are correct."""