<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>172614</bug_id>
          
          <creation_ts>2017-05-25 15:04:32 -0700</creation_ts>
          <short_desc>[iOS] Add TestWebKitAPI infrastructure to simulate tap/click</short_desc>
          <delta_ts>2019-03-08 18:00:51 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Local Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 10</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Bates">dbates</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1312900</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-05-25 15:04:32 -0700</bug_when>
    <thetext>We should add infrastructure for iOS to simulate a tap/click in a TestWebKitAPI unit test. At the time of writing such infrastructure exists for Mac: -[TestWKWebView sendClicksAtPoint:numberOfClicks:] and PlatformWebView::simulateButtonClick() for use when writing tests using the WebKit2 C API and Modern WebKit2 Cocoa API, respectively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1312901</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2017-05-25 15:06:21 -0700</bug_when>
    <thetext>For completeness, I noticed the lack of such infrastructure for iOS when writing unit tests for the runBeforeUnloadConfirmPanel delegate callback in the patch for bug #172603 as WebCore will only query the embedding client to show a beforeunload confirm panel if the user interacted with the page being unloaded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1313457</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-05-27 20:18:41 -0700</bug_when>
    <thetext>Is that really suitable for an API test, or should it be WebKitTestRunner functionality?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1514293</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-08 18:00:51 -0800</bug_when>
    <thetext>&lt;rdar://problem/48733092&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>