~dobey/ubuntuone-control-panel/update-from-trunk

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/tests/test_common.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:
132
132
        yield self.decorate_me()
133
133
 
134
134
        logged = self.memento.check_exception(self.failure.__class__, msg)
135
 
        recs = '\n'.join(rec.exc_text for rec in self.memento.records)
 
135
        recs = '\n'.join(rec.exc_text for rec in self.memento.records
 
136
                         if rec.exc_text is not None)
136
137
        self.assertTrue(logged, 'Exception must be logged, got:\n%s' % recs)
137
138
 
138
139
    @defer.inlineCallbacks
147
148
                QtGui.QMessageBox.Close)
148
149
        self.assertEqual(FakedDialog.args, args)
149
150
        self.assertEqual(FakedDialog.kwargs, {'parent': None})
150
 
        self.assertEqual(FakedDialog.properties['exec_'], 1)
 
151
        self.assertEqual(FakedDialog.properties['shown'], 1)
151
152
 
152
153
    @defer.inlineCallbacks
153
154
    def test_show_error_message_default_button(self):