[webkit-reviews] review granted: [Bug 185599] [iOS] Add a test to ensure that setTimeout() does not fire more than expected when using UIWebView : [Attachment 340287] Unit test

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 14 15:06:27 PDT 2018


Simon Fraser (smfr) <simon.fraser at apple.com> has granted Daniel Bates
<dbates at webkit.org>'s request for review:
Bug 185599: [iOS] Add a test to ensure that setTimeout() does not fire more
than expected when using UIWebView
https://bugs.webkit.org/show_bug.cgi?id=185599

Attachment 340287: Unit test

https://bugs.webkit.org/attachment.cgi?id=340287&action=review




--- Comment #3 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Comment on attachment 340287
  --> https://bugs.webkit.org/attachment.cgi?id=340287
Unit test

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

> Tools/TestWebKitAPI/ios/set-timeout-function.html:11
> +setTimeout(function() { i++; }, 0);
> +setTimeout(function() { i++; }, 100);
> +setTimeout(function() {
> +    i++;
> +    window.location.href = "?fired-" + i;
> +}, 200);

Can we make the test take less than 200ms?


More information about the webkit-reviews mailing list