/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_push.py

  • Committer: Curtis Hovey
  • Date: 2012-03-04 01:47:01 UTC
  • mto: This revision was merged to the branch mainline in revision 782.
  • Revision ID: sinzui.is@verizon.net-20120304014701-ezht7qx487znngae
Follow GNOME HIG.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        self.assertIs(None, dialog.repository)
49
49
        self.assertIs(None, dialog.revid)
50
50
        self.assertIs(branch, dialog.branch)
 
51
        # Layout rules to match HIG.
51
52
        self.assertIsInstance(dialog._label_location, Gtk.Label)
52
 
        self.assertEqual((0.0, 0.5), dialog._label_location.get_alignment())
53
53
        self.assertIsInstance(dialog._combo, Gtk.ComboBox)
54
54
        self.assertIsInstance(dialog._button_push, Gtk.Button)
55
55
        self.assertIsInstance(dialog._hbox_location, Gtk.Box)
56
 
        self.assertEqual(
57
 
            Gtk.Orientation.HORIZONTAL,
58
 
            dialog._hbox_location.props.orientation)
59
 
        self.assertEqual(3, dialog._hbox_location.props.spacing)
60
 
        self.assertEqual(3, dialog.get_content_area().props.spacing)
61
56
        self.assertIsInstance(dialog._progress_widget, ProgressPanel)
 
57
        self.assertIsInstance(dialog._push_message, Gtk.Label)
 
58
        self.assertIsInstance(dialog._history, UrlHistory)
62
59
        self.assertIs(
63
60
            ui.ui_factory._progress_bar_widget, dialog._progress_widget)
64
 
        self.assertIsInstance(dialog._push_message, Gtk.Label)
 
61
        self.assertEqual(
 
62
            Gtk.Orientation.HORIZONTAL,
 
63
            dialog._hbox_location.props.orientation)
 
64
        self.assertEqual(0.0, dialog._push_message.props.xalign)
 
65
        self.assertEqual(6, dialog.props.border_width)
 
66
        self.assertEqual(6, dialog._hbox_location.props.spacing)
 
67
        self.assertEqual(6, dialog.get_content_area().props.spacing)
 
68
        # Show rules.
65
69
        self.assertIs(True, dialog._combo.props.visible)
66
70
        self.assertIs(False, dialog._progress_widget.props.visible)
67
71
        self.assertIs(False, dialog._push_message.props.visible)
68
 
        self.assertIsInstance(dialog._history, UrlHistory)
69
72
 
70
73
    def test_build_history(self):
71
74
        set_ui_factory()