Change WTR::AccessibilityUIElement::descriptionOfValue(id) to return a RetainPtr.
[WebKit-https.git] / LayoutTests / fast / forms / ios / ipad / select-should-not-bring-up-software-keyboard.html
1 <!DOCTYPE html>
2 <html>
3 <meta name="viewport" content="width=device-width, initial-scale=1">
4 <head>
5     <script src="../../../../resources/js-test.js"></script>
6     <script src="../../../../resources/ui-helper.js"></script>
7     <script>
8         jsTestIsAsync = true;
9
10         addEventListener("load", async () => {
11             description("This test verifies that tapping a select element on iPad does not bring up the software keyboard.");
12
13             if (!window.testRunner)
14                 return;
15
16             await UIHelper.setHardwareKeyboardAttached(false);
17
18             const select = document.querySelector("select");
19             await UIHelper.activateElementAndWaitForInputSession(select);
20             isShowingKeyboardAfterFocusingSelect = await UIHelper.isShowingKeyboard();
21             select.blur();
22
23             const colorInput = document.querySelector("input");
24             await UIHelper.activateElementAndWaitForInputSession(colorInput);
25             isShowingKeyboardAfterFocusingColorInput = await UIHelper.isShowingKeyboard();
26             colorInput.blur();
27
28             shouldBeFalse("isShowingKeyboardAfterFocusingSelect");
29             shouldBeFalse("isShowingKeyboardAfterFocusingColorInput");
30             finishJSTest();
31         });
32     </script>
33 </head>
34 <body>
35     <select>
36         <option selected>Foo</option>
37         <option>Bar</option>
38         <option>Baz</option>
39     </select>
40     <input type="color"></input>
41 </body>
42 </html>