Add a test to ensure that setTimeout() fires once.
<rdar://problem/22493890>
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>