TestWebKitAPI.ScrollViewScrollabilityTests.ScrollableWithOverflowHiddenAndInputView is failing on iPad simulator
https://bugs.webkit.org/show_bug.cgi?id=203053

Reviewed by Wenson Hsieh.

Make ScrollableWithOverflowHiddenAndInputView only test the results on iPhones. Test is not designed for ipad.

* TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm:
(TestWebKitAPI::TEST):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251407 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index 9cabe74..2854bac 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,15 @@
+2019-10-21  Simon Fraser  <simon.fraser@apple.com>
+
+        TestWebKitAPI.ScrollViewScrollabilityTests.ScrollableWithOverflowHiddenAndInputView is failing on iPad simulator
+        https://bugs.webkit.org/show_bug.cgi?id=203053
+
+        Reviewed by Wenson Hsieh.
+        
+        Make ScrollableWithOverflowHiddenAndInputView only test the results on iPhones. Test is not designed for ipad.
+
+        * TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm:
+        (TestWebKitAPI::TEST):
+
 2019-10-21  Jonathan Bedard  <jbedard@apple.com>
 
         results.webkit.org: Add ability to display time on bubbles
diff --git a/Tools/TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm b/Tools/TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm
index c2d428b..fe4320f 100644
--- a/Tools/TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm
+++ b/Tools/TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm
@@ -94,7 +94,10 @@
 
     auto webView = webViewWithAutofocusedInput(inputDelegate);
     [webView waitForNextPresentationUpdate];
-    EXPECT_EQ([[webView scrollView] isScrollEnabled], YES);
+    
+    BOOL isPhone = [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone;
+    if (isPhone)
+        EXPECT_EQ([[webView scrollView] isScrollEnabled], YES);
 }
 
 TEST(ScrollViewScrollabilityTests, ScrollableWithOverflowHiddenAndVisibleUI)