Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLKeygenElement / keygen.html
blobe00efdf8c12b139b8da7e4d30c98543995b81026
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <keygen id="keys" />
4 <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"');
21 </script>