<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement keyboard event sending for iOS in WebKitTestRunner"
   href="https://bugs.webkit.org/show_bug.cgi?id=149676#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement keyboard event sending for iOS in WebKitTestRunner"
   href="https://bugs.webkit.org/show_bug.cgi?id=149676">bug 149676</a>
              from <span class="vcard"><a class="email" href="mailto:thorton&#64;apple.com" title="Tim Horton &lt;thorton&#64;apple.com&gt;"> <span class="fn">Tim Horton</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=262196&amp;action=diff" name="attach_262196" title="Patch">attachment 262196</a> <a href="attachment.cgi?id=262196&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=262196&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=262196&amp;action=review</a>

<span class="quote">&gt; Tools/WebKitTestRunner/ios/HIDEventGenerator.h:54
&gt; +- (void)keyDown:(NSString*)character completionBlock:(void (^)(void))completionBlock;</span >

space before the star.

<span class="quote">&gt; Tools/WebKitTestRunner/ios/HIDEventGenerator.mm:443
&gt; +    if ([key length] != 1)</span >

dot?

<span class="quote">&gt; Tools/WebKitTestRunner/ios/HIDEventGenerator.mm:481
&gt; +    if ([key length] == 1) {</span >

dot.

<span class="quote">&gt; Tools/WebKitTestRunner/ios/HIDEventGenerator.mm:495
&gt; +        case '`':</span >

Is there really nothing in the system that can do this for us (even if it's SPI?).

<span class="quote">&gt; Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm:98
&gt; +    TestRunnerWKWebView* webView = TestController::singleton().mainWebView()-&gt;platformView();</span >

star's on the wrong side

<span class="quote">&gt; Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm:100
&gt; +    NSString* characterAsNSString = [[NSString stringWithCString:toSTD(toWK(character)).c_str()] autorelease];</span >

I'm sure there's a better way to get a NSString from a WKString. Going through std::string is crazy. At the very least, use WKStringGetUTF8CString instead of std::string::c_str(), no?

Also, star.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>