Bug 1879774 [wpt PR 44524] - WebKit export: Implement field-sizing support for input...
[gecko.git] / layout / generic / test / test_key_space_single_summary.html
blobb393888ab6a5a08bbd8324b0f1498e66ebf0809b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
5 <script src="/tests/SimpleTest/EventUtils.js"></script>
6 <script>
7 SimpleTest.waitForExplicitFinish();
8 function runTest() {
9 const summary = document.querySelector("summary");
10 summary.focus();
11 synthesizeKey(" ");
13 const details = document.querySelector("details");
14 ok(details.open, "Dispatch space key on summary should open details.");
16 SimpleTest.finish();
18 </script>
19 </head>
20 <body onload="runTest();">
21 <details>
22 <summary>Summary</summary>
23 <p>This is the details.</p>
24 </details>
25 </body>
26 </html>