~jaap.karssenberg/zim/pyzim-gtk3

« back to all changes in this revision

Viewing changes to tests/gui.py

  • Committer: Jaap Karssenberg
  • Date: 2012-08-25 16:05:50 UTC
  • Revision ID: jaap.karssenberg@gmail.com-20120825160550-ahprjzmwgokibhv3
Reworked key bindings for accessing side panes and toggling them

Show diffs side-by-side

added added

removed removed

Lines of Context:
469
469
                self.assertTrue(window.uistate['show_statusbar'])
470
470
 
471
471
                self.assertTrue(window.uistate['left_pane'][0])
472
 
                window.toggle_sidepane()
 
472
                window.toggle_panes()
473
473
                self.assertFalse(window.uistate['left_pane'][0])
474
 
                window.toggle_sidepane()
 
474
                window.toggle_panes()
475
475
                self.assertTrue(window.uistate['left_pane'][0])
476
476
 
477
 
                # note: focus starts at sidepane due to toggle_sidepane above
 
477
                # note: focus starts at sidepane due to toggle_panes above
478
478
                self.assertEqual(window.get_focus(), window.pageindex.treeview)
479
479
                self.assertEqual(window.get_selected_path(), path)
480
 
                window.toggle_focus_index()
 
480
                window.toggle_sidepane_focus()
481
481
                self.assertEqual(window.get_focus(), window.pageview.view)
482
482
                self.assertEqual(window.get_selected_path(), path)
483
 
                window.toggle_focus_index()
 
483
                window.toggle_sidepane_focus()
484
484
                self.assertEqual(window.get_focus(), window.pageindex.treeview)
485
485
                # TODO also check this with "show_sidepane" off
486
486