|
134 | 134 | }, |
135 | 135 | "input": "remote-doc/0013-in.json", |
136 | 136 | "expect": "remote-doc/0013-out.jsonld" |
| 137 | + }, { |
| 138 | + "@id": "#tla01", |
| 139 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 140 | + "name": "Redirects if type is text/html", |
| 141 | + "purpose": "Load an alternate link if type is not ld+json and rel=alternate.", |
| 142 | + "option": { |
| 143 | + "httpLink": "<la01-alternate.jsonld>; rel=\"alternate\"; type=\"application/ld+json\"" |
| 144 | + }, |
| 145 | + "input": "remote-doc/la01-in.html", |
| 146 | + "expect": "remote-doc/la01-out.jsonld" |
| 147 | + }, { |
| 148 | + "@id": "#tla02", |
| 149 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 150 | + "name": "Does not redirect if type is application/ld+json", |
| 151 | + "purpose": "Load an alternate link if type is not ld+json and rel=alternate.", |
| 152 | + "option": { |
| 153 | + "httpLink": "<la02-alternate.jsonld>; rel=\"alternate\"; type=\"application/ld+json\"" |
| 154 | + }, |
| 155 | + "input": "remote-doc/la02-in.jsonld", |
| 156 | + "expect": "remote-doc/la02-out.jsonld" |
| 157 | + }, { |
| 158 | + "@id": "#tla03", |
| 159 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 160 | + "name": "Does not redirect if link type is not application/ld+json", |
| 161 | + "purpose": "Load an alternate link if type is not ld+json and rel=alternate.", |
| 162 | + "option": { |
| 163 | + "httpLink": "<la03-alternate.json>; rel=\"alternate\"; type=\"application/json\"" |
| 164 | + }, |
| 165 | + "input": "remote-doc/la03-in.json", |
| 166 | + "expect": "remote-doc/la03-out.jsonld" |
| 167 | + }, { |
| 168 | + "@id": "#tla04", |
| 169 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 170 | + "name": "Does not redirect if type is application/json", |
| 171 | + "purpose": "Load an alternate link if type is not ld+json and rel=alternate.", |
| 172 | + "option": { |
| 173 | + "httpLink": "<la04-alternate.jsonld>; rel=\"alternate\"; type=\"application/ld+json\"" |
| 174 | + }, |
| 175 | + "input": "remote-doc/la04-in.json", |
| 176 | + "expect": "remote-doc/la04-out.jsonld" |
| 177 | + }, { |
| 178 | + "@id": "#tla05", |
| 179 | + "@type": ["jld:PositiveEvaluationTest", "jld:ExpandTest"], |
| 180 | + "name": "Base remains that of original document", |
| 181 | + "purpose": "Load an alternate link if type is not ld+json and rel=alternate.", |
| 182 | + "option": { |
| 183 | + "httpLink": "<la05-alternate.jsonld>; rel=\"alternate\"; type=\"application/ld+json\"" |
| 184 | + }, |
| 185 | + "input": "remote-doc/la05-in.html", |
| 186 | + "expect": "remote-doc/la05-out.jsonld" |
137 | 187 | } |
138 | 188 | ] |
139 | 189 | } |
0 commit comments