Home | History | Annotate | Download | only in HTMLKeygenElement
      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <script src="../../js/resources/js-test-pre.js"></script>
      5 </head>
      6 <body>
      7 <keygen id="keys" />
      8 <pre id="console">
      9 This tests the keygen element.
     10 
     11 </pre>
     12 <script>
     13 var keygen = document.getElementById('keys');
     14 shouldBe('keygen.options', 'undefined');  // keygen is not a select
     15 
     16 if (window.layoutTestController) {
     17   var shadow = layoutTestController.shadowRoot(keygen);
     18   shouldBe('shadow.firstChild.tagName', '"SELECT"');
     19   shouldBe('layoutTestController.shadowRoot(shadow)', 'null');
     20   shouldBe('layoutTestController.shadowRoot(shadow.firstChild)', 'null');
     21 }
     22 
     23 var successfullyParsed = true;
     24 </script>
     25 <script src="../../js/resources/js-test-post.js"></script>
     26 </body>
     27 </html>
     28