8297609: Add application/wasm MIME type for wasm file extension
Reviewed-by: jpai, michaelm
This commit is contained in:
parent
a71d91b96f
commit
914ef07fed
@ -258,8 +258,8 @@ image/webp: \
|
|||||||
file_extensions=.webp;
|
file_extensions=.webp;
|
||||||
|
|
||||||
text/css: \
|
text/css: \
|
||||||
description=CSS File;\
|
description=CSS File;\
|
||||||
file_extensions=.css;
|
file_extensions=.css;
|
||||||
|
|
||||||
text/html: \
|
text/html: \
|
||||||
description=HTML Document;\
|
description=HTML Document;\
|
||||||
@ -267,8 +267,8 @@ text/html: \
|
|||||||
icon=html
|
icon=html
|
||||||
|
|
||||||
text/javascript: \
|
text/javascript: \
|
||||||
description=JavaScript File;\
|
description=JavaScript File;\
|
||||||
file_extensions=.js;
|
file_extensions=.js;
|
||||||
|
|
||||||
text/plain: \
|
text/plain: \
|
||||||
description=Plain Text;\
|
description=Plain Text;\
|
||||||
@ -289,8 +289,8 @@ text/csv: \
|
|||||||
file_extensions=.csv;
|
file_extensions=.csv;
|
||||||
|
|
||||||
text/markdown: \
|
text/markdown: \
|
||||||
description=Markdown File;\
|
description=Markdown File;\
|
||||||
file_extensions=.md,.markdown
|
file_extensions=.md,.markdown
|
||||||
|
|
||||||
video/mp4: \
|
video/mp4: \
|
||||||
description=MPEG-4 Video;\
|
description=MPEG-4 Video;\
|
||||||
@ -353,7 +353,7 @@ application/vnd.oasis.opendocument.text: \
|
|||||||
file_extensions=.odt;
|
file_extensions=.odt;
|
||||||
|
|
||||||
application/vnd.ms-excel: \
|
application/vnd.ms-excel: \
|
||||||
description=Microsoft Excel File;\
|
description=Microsoft Excel File;\
|
||||||
file_extensions=.xls;
|
file_extensions=.xls;
|
||||||
|
|
||||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: \
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: \
|
||||||
@ -395,3 +395,7 @@ application/bz2: \
|
|||||||
application/java-archive: \
|
application/java-archive: \
|
||||||
description=JAR File;\
|
description=JAR File;\
|
||||||
file_extensions=.jar;
|
file_extensions=.jar;
|
||||||
|
|
||||||
|
application/wasm: \
|
||||||
|
description=WebAssembly File;\
|
||||||
|
file_extensions=.wasm;
|
||||||
|
@ -259,8 +259,8 @@ image/webp: \
|
|||||||
file_extensions=.webp;
|
file_extensions=.webp;
|
||||||
|
|
||||||
text/css: \
|
text/css: \
|
||||||
description=CSS File;\
|
description=CSS File;\
|
||||||
file_extensions=.css;
|
file_extensions=.css;
|
||||||
|
|
||||||
text/html: \
|
text/html: \
|
||||||
description=HTML Document;\
|
description=HTML Document;\
|
||||||
@ -290,8 +290,8 @@ text/csv: \
|
|||||||
file_extensions=.csv;
|
file_extensions=.csv;
|
||||||
|
|
||||||
text/markdown: \
|
text/markdown: \
|
||||||
description=Markdown File;\
|
description=Markdown File;\
|
||||||
file_extensions=.md,.markdown
|
file_extensions=.md,.markdown
|
||||||
|
|
||||||
video/mp4: \
|
video/mp4: \
|
||||||
description=MPEG-4 Video;\
|
description=MPEG-4 Video;\
|
||||||
@ -387,4 +387,8 @@ application/bz2: \
|
|||||||
|
|
||||||
application/java-archive: \
|
application/java-archive: \
|
||||||
description=JAR File;\
|
description=JAR File;\
|
||||||
file_extensions=.jar;
|
file_extensions=.jar;
|
||||||
|
|
||||||
|
application/wasm: \
|
||||||
|
description=WebAssembly File;\
|
||||||
|
file_extensions=.wasm;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* @test
|
/* @test
|
||||||
* @bug 4313887 8129632 8129633 8162624 8146215 8162745 8273655 8274171 8287237
|
* @bug 4313887 8129632 8129633 8162624 8146215 8162745 8273655 8274171 8287237 8297609
|
||||||
* @summary Unit test for probeContentType method
|
* @summary Unit test for probeContentType method
|
||||||
* @library ../..
|
* @library ../..
|
||||||
* @build Basic SimpleFileTypeDetector
|
* @build Basic SimpleFileTypeDetector
|
||||||
@ -187,6 +187,7 @@ public class Basic {
|
|||||||
new ExType("xls", List.of("application/vnd.ms-excel")),
|
new ExType("xls", List.of("application/vnd.ms-excel")),
|
||||||
new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")),
|
new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")),
|
||||||
new ExType("7z", List.of("application/x-7z-compressed")),
|
new ExType("7z", List.of("application/x-7z-compressed")),
|
||||||
|
new ExType("wasm", List.of("application/wasm")),
|
||||||
};
|
};
|
||||||
failures += checkContentTypes(exTypes);
|
failures += checkContentTypes(exTypes);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user