Added test rows and known icons for 5 most common video format
Jessica Schilling committed
May 4, 2020 at 15:28 UTC
3cf460a73c5eee6d8c33dc3130f93718ab54b4c7
2 files changed
+18
knownIcons.txt
+2
@@ -28,6 +28,7 @@
28
.key
29
.less
30
.mid
31
+.mov
32
.mp3
33
.mp4
34
.mpg
@@ -55,6 +56,7 @@
56
.tiff
57
.txt
58
.wav
59
+.wmv
60
.xls
61
.xlsx
62
.xml
test/main.go
+16
@@ -26,9 +26,25 @@ type directoryItem struct {
26
27
var testData = listingTemplateData{
28
Listing: []directoryItem{{
29
+ Size: "25 MiB",
30
+ Name: "film-in-one-of-many-formats-to-test-icons.avi",
31
+ Path: "film-in-one-of-many-formats-to-test-icons.avi",
32
+ }, {
33
+ Size: "25 MiB",
34
+ Name: "short-film.flv",
35
+ Path: "short-film.flv",
36
+ }, {
37
+ Size: "25 MiB",
38
+ Name: "short-film.wmv",
39
+ Path: "short-film.wmv",
40
+ }, {
41
Size: "25 MiB",
42
Name: "short-film.mov",
43
Path: "short-film.mov",
44
+ }, {
45
+ Size: "25 MiB",
46
+ Name: "short-film.mp4",
47
+ Path: "short-film.mp4",
48
}, {
49
Size: "1 KiB",
50
Name: "this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt",