summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-05-12 22:05:34 +0300
committerVille Skyttä <ville.skytta@iki.fi>2021-05-12 22:05:34 +0300
commit98f200fb7e85a5c7e27e9a997c7a2096573e6c09 (patch)
tree8f0988b0714e6ee936ab9251373f67b336f24ae3 /tests
parent09faac14d0c88dc6ee50a59c7d880e9631c39ff3 (diff)
downloadshared-mime-info-98f200fb7e85a5c7e27e9a997c7a2096573e6c09.tar.gz
application/toml: new type
https://toml.io/en/v1.0.0#mime-type Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/156
Diffstat (limited to 'tests')
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/test.toml23
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index ae8f3c45..9371ec12 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -333,6 +333,8 @@ html5.css text/css ox
# Copied from http://www.w3.org/TR/html5/offline.html#manifests
test.manifest text/cache-manifest
test.yaml application/x-yaml
+# Copied from https://toml.io/en/
+test.toml application/toml ox
# hand-made
mysum.m text/x-matlab x
# taken from Octave 3.2 sources
diff --git a/tests/mime-detection/test.toml b/tests/mime-detection/test.toml
new file mode 100644
index 00000000..3fe43f07
--- /dev/null
+++ b/tests/mime-detection/test.toml
@@ -0,0 +1,23 @@
+# This is a TOML document
+
+title = "TOML Example"
+
+[owner]
+name = "Tom Preston-Werner"
+dob = 1979-05-27T07:32:00-08:00
+
+[database]
+enabled = true
+ports = [ 8000, 8001, 8002 ]
+data = [ ["delta", "phi"], [3.14] ]
+temp_targets = { cpu = 79.5, case = 72.0 }
+
+[servers]
+
+[servers.alpha]
+ip = "10.0.0.1"
+role = "frontend"
+
+[servers.beta]
+ip = "10.0.0.2"
+role = "backend"