2 <script src=
"../../../resources/js-test.js"></script>
5 description("This tests the keygen element");
7 var keygen
= document
.getElementById('keys');
8 shouldBe('keygen.options', 'undefined'); // keygen is not a select
9 shouldBeEqualToString('keygen.type', 'keygen');
10 shouldBeEqualToString('keygen.keytype', 'rsa');
11 shouldBeNull('keygen.getAttribute("keytype")');
12 shouldBeEqualToString('keygen.keytype = "foo"; keygen.keytype', '');
13 shouldBeEqualToString('keygen.getAttribute("KEYtype")', 'foo');
14 shouldBeEqualToString('keygen.setAttribute("keytype", "bar"); keygen.keytype', '');
15 shouldBeEqualToString('keygen.getAttribute("KeyType")', 'bar');
17 if (window
.internals
) {
18 var shadow
= internals
.shadowRoot(keygen
);
19 shouldBe('shadow.firstChild.tagName', '"SELECT"');