Summary: | [iOS] Add a test to ensure that setTimeout() does not fire more than expected when using UIWebView | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
Component: | Tools / Tests | Assignee: | Daniel Bates <dbates> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | aestes, lforschler, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Local Build | ||||||
Hardware: | iPhone / iPad | ||||||
OS: | iOS 9.3 | ||||||
Attachments: |
|
Description
Daniel Bates
2018-05-13 20:32:15 PDT
Created attachment 340287 [details]
Unit test
Comment on attachment 340287 [details] 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? (In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 340287 [details] > 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? Will change to use 20ms before landing. Committed r231776: <https://trac.webkit.org/changeset/231776> |