Bug 168159 - [WK2] Add test infrastructure and unit tests for data interaction
Summary: [WK2] Add test infrastructure and unit tests for data interaction
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-02-10 19:30 PST by Wenson Hsieh
Modified: 2017-02-14 18:10 PST (History)
5 users (show)

See Also:


Attachments
Patch (47.14 KB, patch)
2017-02-10 20:17 PST, Wenson Hsieh
no flags Details | Formatted Diff | Diff
Build fix (47.43 KB, patch)
2017-02-10 20:47 PST, Wenson Hsieh
no flags Details | Formatted Diff | Diff
Add another test case (51.53 KB, patch)
2017-02-12 16:29 PST, Wenson Hsieh
thorton: review+
Details | Formatted Diff | Diff
Patch for landing (51.55 KB, patch)
2017-02-13 14:40 PST, Wenson Hsieh
commit-queue: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (51.68 KB, patch)
2017-02-13 14:48 PST, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2017-02-10 19:30:38 PST
Build infrastructure to be able to test data interaction.
Comment 1 Wenson Hsieh 2017-02-10 19:31:27 PST
<rdar://problem/30477634>
Comment 2 Wenson Hsieh 2017-02-10 20:17:39 PST
Created attachment 301239 [details]
Patch
Comment 3 Wenson Hsieh 2017-02-10 20:47:38 PST
Created attachment 301242 [details]
Build fix
Comment 4 Wenson Hsieh 2017-02-12 16:29:26 PST
Created attachment 301323 [details]
Add another test case
Comment 5 Tim Horton 2017-02-13 12:38:04 PST
Comment on attachment 301323 [details]
Add another test case

View in context: https://bugs.webkit.org/attachment.cgi?id=301323&action=review

> Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:57
> +        RetainPtr<DataInteractionSimulator> dataInteractionSimulator = [[DataInteractionSimulator alloc] initWithWebView:webView.get() startLocation:CGPointMake(100, 100) endLocation:CGPointMake(100, 300)];

ADOPT

> Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:70
> +        RetainPtr<DataInteractionSimulator> dataInteractionSimulator = [[DataInteractionSimulator alloc] initWithWebView:webView.get() startLocation:CGPointMake(100, 100) endLocation:CGPointMake(100, 300)];

ADOPT

> Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:84
> +        RetainPtr<DataInteractionSimulator> dataInteractionSimulator = [[DataInteractionSimulator alloc] initWithWebView:webView.get() startLocation:CGPointMake(100, 100) endLocation:CGPointMake(100, 300)];

ADOPT
Comment 6 Wenson Hsieh 2017-02-13 14:40:49 PST
Created attachment 301391 [details]
Patch for landing
Comment 7 Wenson Hsieh 2017-02-13 14:41:20 PST
(In reply to comment #5)
> Comment on attachment 301323 [details]
> Add another test case
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=301323&action=review
> 
> > Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:57
> > +        RetainPtr<DataInteractionSimulator> dataInteractionSimulator = [[DataInteractionSimulator alloc] initWithWebView:webView.get() startLocation:CGPointMake(100, 100) endLocation:CGPointMake(100, 300)];
> 
> ADOPT

Whoops, good catch. Fixed!

> 
> > Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:70
> > +        RetainPtr<DataInteractionSimulator> dataInteractionSimulator = [[DataInteractionSimulator alloc] initWithWebView:webView.get() startLocation:CGPointMake(100, 100) endLocation:CGPointMake(100, 300)];
> 
> ADOPT
> 
> > Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm:84
> > +        RetainPtr<DataInteractionSimulator> dataInteractionSimulator = [[DataInteractionSimulator alloc] initWithWebView:webView.get() startLocation:CGPointMake(100, 100) endLocation:CGPointMake(100, 300)];
> 
> ADOPT
Comment 8 WebKit Commit Bot 2017-02-13 14:43:04 PST
Comment on attachment 301391 [details]
Patch for landing

Rejecting attachment 301391 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 301391, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
bKit2Cocoa/image-and-contenteditable.html
patching file Tools/TestWebKitAPI/Tests/WebKit2Cocoa/image-and-textarea.html
patching file Tools/TestWebKitAPI/Tests/ios/DataInteractionTests.mm
patching file Tools/TestWebKitAPI/cocoa/TestWKWebView.mm
patching file Tools/TestWebKitAPI/ios/DataInteractionSimulator.h
patching file Tools/TestWebKitAPI/ios/DataInteractionSimulator.mm

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/3081168
Comment 9 Wenson Hsieh 2017-02-13 14:48:10 PST
Created attachment 301393 [details]
Patch for landing
Comment 10 Wenson Hsieh 2017-02-13 14:48:37 PST
Comment on attachment 301391 [details]
Patch for landing

Needed rebasing.
Comment 11 WebKit Commit Bot 2017-02-13 15:11:47 PST
Comment on attachment 301393 [details]
Patch for landing

Clearing flags on attachment: 301393

Committed r212254: <http://trac.webkit.org/changeset/212254>