~apport-hackers/apport/trunk

« back to all changes in this revision

Viewing changes to test/test_ui_gtk.py

  • Committer: Martin Pitt
  • Date: 2012-08-31 09:05:45 UTC
  • mfrom: (2475.1.6 warmer-text)
  • Revision ID: martin.pitt@canonical.com-20120831090545-sgz7s3bq5dwuikvj
* apport-gtk: For console program crashes, say "stopped" instead of "closed". Add a subtitle label with a hint about hanging programs. Thanks Matt Price and Matthew Paul Thomas!

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
        self.assertEqual(self.app.w('dialog_crash_new').get_title(), self.distro)
253
253
        self.assertEqual(self.app.w('title_label').get_text(),
254
254
                         _('The application Apport has stopped responding.'))
 
255
        self.assertEqual(self.app.w('subtitle_label').get_text(),
 
256
                         _('You can wait to see if it wakes up, or close or '
 
257
                           'relaunch it.'))
255
258
        send_error_report = self.app.w('send_error_report')
256
259
        self.assertTrue(send_error_report.get_property('visible'))
257
260
        self.assertTrue(send_error_report.get_active())
262
265
        self.assertTrue(self.app.w('closed_button').get_property('visible'))
263
266
        self.assertEqual(self.app.w('closed_button').get_label(),
264
267
                         _('Force Closed'))
265
 
        self.assertFalse(self.app.w('subtitle_label').get_property('visible'))
 
268
        self.assertTrue(self.app.w('subtitle_label').get_property('visible'))
266
269
        self.assertFalse(self.app.w('ignore_future_problems').get_property('visible'))
267
270
 
268
271
    def test_system_crash_layout(self):
325
328
        self.app.ui_present_report_details(True)
326
329
        self.assertEqual(self.app.w('dialog_crash_new').get_title(), self.distro)
327
330
        self.assertEqual(self.app.w('title_label').get_text(),
328
 
                         _('Sorry, the application apport has closed unexpectedly.'))
 
331
                         _('Sorry, the application apport has stopped unexpectedly.'))
329
332
        self.assertEqual(self.app.w('subtitle_label').get_text(),
330
333
                         _('If you notice further problems, try restarting the computer.'))
331
334
        self.assertTrue(self.app.w('subtitle_label').get_property('visible'))