Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / subtle / deserialize-legacy-aes-key-empty-usages.html
bloba2ad485ad1dd323c1e15c130e0069c0153c5b05e
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/common.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Check that an already imported key with empty usages can be deserialized.");
11 // It used to be possible to import keys with empty usages, it is possible that
12 // such keys were persisted to storage. This test verifies that such keys can
13 // still be successfully de-serialized.
15 // The version number of the serialized format used is 7.
17 var serializedKey = "ff073f004b010110011030112233445566778899aabbccddeeff";
19 var key = internals.deserializeBuffer(hexStringToUint8Array(serializedKey).buffer);
21 shouldBeEqualToString("key.type", "secret");
22 shouldBeTrue("key.extractable");
23 shouldBeEqualToString("key.algorithm.name", "AES-CBC");
24 shouldBe("key.usages", "[]");
26 </script>
27 </body>
28 </html>