/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_commit.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-01 21:29:00 UTC
  • mto: This revision was merged to the branch mainline in revision 781.
  • Revision ID: jelmer@samba.org-20120301212900-de4j4ugoxi1sga1g
Properly handle popup menus when there is no selected revision in 'bzr viz'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
        dlg._on_treeview_files_cursor_changed(treeview)
236
236
        self.assertFalse(CommitDialogNoWidgets._update_per_file_info.called)
237
237
 
238
 
    def test_get_line_height(self):
239
 
        tree = self.make_branch_and_tree('tree')
240
 
        dlg = CommitDialogNoWidgets(tree)
241
 
        textview = Gtk.TextView()
242
 
        line_height = dlg.get_line_height(textview)
243
 
        self.assertIsInstance(line_height, int)
244
 
 
245
238
 
246
239
class TestCommitDialog(tests.TestCaseWithTransport):
247
240