-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.json
109 lines (109 loc) · 5.56 KB
/
index.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"date": "2020-01-05",
"title": "Tests related to LPF processing",
"href": "https://www.w3.org/TR/2020/NOTE-lpf-20200319/",
"tests": [
{
"section": "§4 Packaging format",
"href": "https://www.w3.org/TR/2020/NOTE-lpf-20200319/#sec-zip",
"tests": [
{
"id": "l4.01",
"format": "zip",
"description": "This specification uses the ZIP format as specified in ISO/IEC 21320-1:2015.",
"actions": "Check that the tested package is a compliant zip file",
"errors": "none",
"media-type": "application/zip"
}
]
},
{
"section": "§5. Compression of resources",
"href": "https://www.w3.org/TR/2020/NOTE-lpf-20200319/#sec-compression",
"tests": [
{
"id": "l5.01",
"description": "Resources with Non-Codec content types SHOULD be compressed and the Deflate compression algorithm MUST be used.",
"actions": "Check that each html file is stored deflated in the tested package",
"errors": "none",
"media-type": "application/zip"
},
{
"id": "l5.02",
"description": "Resources with Codec content types SHOULD be stored without compression.",
"actions": "Check that each mp3 file is stored without compression in the tested package",
"errors": "none",
"media-type": "application/zip"
}
]
},
{
"section": "§6 File and directory structure",
"href": "https://www.w3.org/TR/2020/NOTE-lpf-20200319/#sec-structure",
"tests": [
{
"id": "l6.01",
"description": "A Package MUST include at least one of the following files in its Root Directory: A file named publication.json, which MUST be in the format defined for Publication Manifests. ...",
"actions": "Extract publication.json from the tested package and check that it is a valid publication manifest",
"errors": "none",
"media-type": "application/zip"
},
{
"id": "l6.02",
"description": "A Package MUST include at least one of the following files in its Root Directory: ... A file named index.html which MUST follow the requirements of the Primary Entry Page of a digital publication.",
"actions": "Extract index.html file from the tested package and check that it is a well formed html structure",
"errors": "none",
"media-type": "application/zip"
},
{
"id": "l6.03",
"description": "The index.html file MUST follow the requirements of the Primary Entry Page of a digital publication.",
"actions": "Extract a valid publication manifest from index.html",
"errors": "none",
"media-type": "application/zip"
},
{
"id": "l6.04",
"description": "A Package MUST include at least one of the following files in its Root Directory: A file named publication.json, which MUST be in the format defined for Publication Manifests. A file named index.html which MUST follow the requirements of the Primary Entry Page of a digital publication.",
"actions": "Check that no publication.json or index.html file is found in the root directory of the tested package",
"errors": "fatal error on missing publication manifest",
"media-type": "application/zip"
},
{
"id": "l6.05",
"description": "A Package MUST include all resources within the bounds of the digital publication.",
"actions": "Check that all html files referenced in the publication manifest are present in the tested package.",
"errors": "none",
"media-type": "application/zip"
},
{
"id": "l6.06",
"description": "A Package MUST include all resources within the bounds of the digital publication.",
"actions": "Check that an html file referenced in the publication manifest is absent from the tested package.",
"errors": "fatal error on missing resource",
"media-type": "application/zip"
},
{
"id": "l6.07",
"description": "Contents within the Package MUST reference these resources via relative-URL strings.",
"actions": "Return a CSS file which is referenced from an html file via a relative-URL string.",
"errors": "none",
"media-type": "application/zip"
}
]
},
{
"section": "§7 Obtaining a publication manifest",
"href": "https://www.w3.org/TR/2020/NOTE-lpf-20200319/#sec-obtaining-manifest",
"tests": [
{
"id": "l7.01",
"description": "If both index.html and publication.json are present in the Package, then the Primary Entry Page SHOULD contain a reference to the publication.json file.",
"actions": "Check that the reference to the manifest in index.html points to publication.json",
"errors": "none",
"media-type": "application/zip"
}
]
}
]
}