Skip to content

Commit

Permalink
Accept either x-glade or x-gtk-builder for glade UI file
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jul 4, 2017
1 parent 8f28887 commit c80f5ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test-mime.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def test_get_type2(self):
self.check_mimetype(Mime.get_type2(example_file('word.doc')), 'application', 'msword')

# Ambiguous file extension
self.check_mimetype(Mime.get_type2(example_file('glade.ui')), 'application', 'x-gtk-builder')
glade_mime = Mime.get_type2(example_file('glade.ui'))
self.assertEqual(glade_mime.media, 'application')
# Grumble, this is still ambiguous on some systems
self.assertIn(glade_mime.subtype, {'x-gtk-builder', 'x-glade'})
self.check_mimetype(Mime.get_type2(example_file('qtdesigner.ui')), 'application', 'x-designer')

# text/x-python has greater weight than text/x-readme
Expand Down

0 comments on commit c80f5ce

Please sign in to comment.