summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-06-28 20:48:37 +0300
committerVille Skyttä <ville.skytta@iki.fi>2021-07-29 22:06:25 +0000
commitddc78deeee16d3cab4322122aa3133cc3c083f07 (patch)
tree00fe0092eb6c29776422cd6f3a128c756b448135 /tests
parentafcaa28043205824db93ac86b463bc6366f62979 (diff)
downloadshared-mime-info-ddc78deeee16d3cab4322122aa3133cc3c083f07.tar.gz
model/gltf+json: new type
https://www.iana.org/assignments/media-types/model/gltf+json
Diffstat (limited to 'tests')
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/test.gltf55
2 files changed, 57 insertions, 0 deletions
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 1efb647a..cca1a83f 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -667,6 +667,8 @@ cube.igs model/iges
cube.wrl model/vrml
# Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/BoxInterleaved/glTF-Binary/BoxInterleaved.glb
test.glb model/gltf-binary
+# Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf
+test.gltf model/gltf+json ox
# other
text.pdf application/pdf
diff --git a/tests/mime-detection/test.gltf b/tests/mime-detection/test.gltf
new file mode 100644
index 00000000..4bbb6007
--- /dev/null
+++ b/tests/mime-detection/test.gltf
@@ -0,0 +1,55 @@
+{
+ "scene" : 0,
+ "scenes" : [
+ {
+ "nodes" : [ 0 ]
+ }
+ ],
+
+ "nodes" : [
+ {
+ "mesh" : 0
+ }
+ ],
+
+ "meshes" : [
+ {
+ "primitives" : [ {
+ "attributes" : {
+ "POSITION" : 0
+ }
+ } ]
+ }
+ ],
+
+ "buffers" : [
+ {
+ "uri" : "triangleWithoutIndices.bin",
+ "byteLength" : 36
+ }
+ ],
+ "bufferViews" : [
+ {
+ "buffer" : 0,
+ "byteOffset" : 0,
+ "byteLength" : 36,
+ "target" : 34962
+ }
+ ],
+ "accessors" : [
+ {
+ "bufferView" : 0,
+ "byteOffset" : 0,
+ "componentType" : 5126,
+ "count" : 3,
+ "type" : "VEC3",
+ "max" : [ 1.0, 1.0, 0.0 ],
+ "min" : [ 0.0, 0.0, 0.0 ]
+ }
+ ],
+
+ "asset" : {
+ "version" : "2.0"
+ }
+}
+