[webkit-dev] Use LayoutTests/resources/ui-helper.js to tap or click an element regardless of platform
Ryosuke Niwa
rniwa at webkit.org
Tue Dec 13 23:39:38 PST 2016
On Tue, Dec 13, 2016 at 11:13 PM, Yusuke SUZUKI <utatane.tea at gmail.com>
wrote:
> Awesome,
>
> In UIHelper, we heavily use Promises.
> I think we can further simplify the test code with async/await.
>
> For example,
>
> UIHelper.wait(async function () {
> await UIHelper.activateAt(shadowHost.offsetLeft + 5,
> shadowHost.offsetTop + 5);
> await UIHelper.activateAt(shadowHost.offsetLeft + 25,
> shadowHost.offsetTop + 25);
> });
>
Indeed! That would be more modern way of using these functions now that
await & async syntax’s are in.
- R. Niwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20161213/fcc07577/attachment.html>
More information about the webkit-dev
mailing list