REGRESSION (r244220): fast/forms/ios/inputmode-change-update-keyboard.html times out
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 19:54:26 +0000 (19:54 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 19:54:26 +0000 (19:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=197027
<rdar://problem/49959227>

Reviewed by Megan Gardner.

Recently, r244220 added a mechanism to disconnect or connect the hardware keyboard from layout tests; adopt this
to fix several tests that require the software keyboard to be present.

* fast/events/autoscroll-when-input-is-offscreen.html:
* fast/forms/ios/inputmode-change-update-keyboard.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244397 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/events/autoscroll-when-input-is-offscreen.html
LayoutTests/fast/forms/ios/inputmode-change-update-keyboard.html

index da7e867..4d4dcff 100644 (file)
@@ -1,3 +1,17 @@
+2019-04-17  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        REGRESSION (r244220): fast/forms/ios/inputmode-change-update-keyboard.html times out
+        https://bugs.webkit.org/show_bug.cgi?id=197027
+        <rdar://problem/49959227>
+
+        Reviewed by Megan Gardner.
+
+        Recently, r244220 added a mechanism to disconnect or connect the hardware keyboard from layout tests; adopt this
+        to fix several tests that require the software keyboard to be present.
+
+        * fast/events/autoscroll-when-input-is-offscreen.html:
+        * fast/forms/ios/inputmode-change-update-keyboard.html:
+
 2019-04-17  Antoine Quint  <graouts@apple.com>
 
         [Pointer Events WPT] Update WPT tests and provide macOS testdriver
index f558ed1..1592f00 100644 (file)
@@ -16,6 +16,7 @@
     
         var output = '';
 
+        await UIHelper.setHardwareKeyboardAttached(false);
         await UIHelper.activateElementAndWaitForInputSession(document.getElementById('editable'));
         
         var programaticScroll = 500;
index 9dee4b4..8526314 100644 (file)
@@ -30,6 +30,8 @@ if (!window.testRunner) {
 }
 
 async function runTest() {
+    await UIHelper.setHardwareKeyboardAttached(false);
+
     debug('inputmode="text"');
 
     let didResize = () => { };