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)
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)
63
60
ui.ui_factory._progress_bar_widget, dialog._progress_widget)
64
self.assertIsInstance(dialog._push_message, Gtk.Label)
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)
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)
70
73
def test_build_history(self):