Testing iOS/WK1?

# Frédéric Wang (2 days ago)

During the WebKit Contributors Meeting, Simon Fraser suggested that I should verify some of the my patches using WK1. Hence I did some experiments (again):

  • When I run run-webkit-tests, whatever the value specified via --platform, the selected expectation is always a "wk2" file and the code executed is from WebKit (i.e. WK2 == non-legacy).

  • I wrote a dummy iOS app using the deprecated UIWebView [1] and tried to launch it with Tools/Scripts/run-webkit-app --ios-simulator /path/to/WebKitLegacyApp.app ; that seems to be working (code from WebKitLegacy is indeed executed). Also, page is loaded and properly rendered at startup so I can somewhat test it. However, the app does not reply to user interaction so it's difficult to do manual testing (not to mention features like the Find UI are not available).

Also, I have not checked but IIRC the EWS bots actually only run iOS/WK2 tests, right?

Any idea/suggestion regarding how one could test iOS/WK1?

PS: I'm using the public Xcode SDK. In particular I only have access to the simulator.

[1] fred-wang/WebKitLegacyApp

Contact us to advertise here
# Ali Juma (2 days ago)

On Tue, Oct 23, 2018 at 11:39 AM Frédéric Wang <fwang at igalia.com> wrote:

Hi all,

During the WebKit Contributors Meeting, Simon Fraser suggested that I should verify some of the my patches using WK1. Hence I did some experiments (again):

  • When I run run-webkit-tests, whatever the value specified via --platform, the selected expectation is always a "wk2" file and the code executed is from WebKit (i.e. WK2 == non-legacy).

Try passing the argument "-1":

run

# Frédéric Wang (12 hours ago)

On 23/10/2018 17:44, Ali Juma wrote:

Try passing the argument "-1":

run-webkit-tests --ios-simulator -1

Great thanks for the hint, I think this --dump-render-tree could be useful indeed to check WK1.

However, in the particular scrolling tests I'm considering, I'm relying a lot on testRunner.runUIScript to execute basic gestures or emulate the find UI and most of these APIs are not implemented (easily implementable?) in Tools/DumpRenderTree/ios/UIScriptControllerIOS.mm

Want more features?

Request early access to our private beta of readable email premium.