@@ -192,4 +192,19 @@ function run_test(algorithmNames) {
|
192 | 192 | }); |
193 | 193 | }); |
194 | 194 | }); |
| 195 | + |
| 196 | +// Missing mandatory "name" field on algorithm |
| 197 | +testVectors.forEach(function(vector) { |
| 198 | +var name = vector.name; |
| 199 | +// We just need *some* valid keydata, so pick the first available algorithm. |
| 200 | +var algorithm = allAlgorithmSpecifiersFor(name)[0]; |
| 201 | +getValidKeyData(algorithm).forEach(function(test) { |
| 202 | +validUsages(vector, test.format, test.data).forEach(function(usages) { |
| 203 | +[true, false].forEach(function(extractable) { |
| 204 | +testError(test.format, {}, test.data, name, usages, extractable, "TypeError", "Missing algorithm name"); |
| 205 | +}); |
| 206 | +}); |
| 207 | +}); |
| 208 | +}); |
| 209 | + |
195 | 210 | } |