summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2011-10-29 12:22:45 +0200
committerDavid Faure <faure@kde.org>2011-10-31 16:09:06 +0100
commit79cbcb42448886c2eab7521ee0eb38a6721fc8d3 (patch)
tree185255e972323416af2d730c836aff80eaa77431
parent0f9a506069cb126655057f43f1b5f99df6d2c8aa (diff)
downloadshared-mime-info-79cbcb42448886c2eab7521ee0eb38a6721fc8d3.tar.gz
Add testcase for glob priority. Passes with xdgmime implementation.
-rw-r--r--tests/list1
-rw-r--r--tests/pdf-not-matlab2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/list b/tests/list
index c07dd923..2057745b 100644
--- a/tests/list
+++ b/tests/list
@@ -320,6 +320,7 @@ text.wwf application/x-wwf oxo
README.pdf application/pdf
# From https://bugs.freedesktop.org/show_bug.cgi?id=29083#c2
testcase.is-really-a-pdf application/pdf xo
+pdf-not-matlab application/pdf x
test.pdf.xz application/x-xzpdf ox
Makefile text/x-makefile ox
Makefile.gnu text/x-makefile ox
diff --git a/tests/pdf-not-matlab b/tests/pdf-not-matlab
new file mode 100644
index 00000000..9137ddc9
--- /dev/null
+++ b/tests/pdf-not-matlab
@@ -0,0 +1,2 @@
+%PDF-
+If we find x-matlab because it starts with '%' then we are not ordering by priority.