Fix race-condition in fast/forms/ios/ipad/select-form-run-twice.html
authormegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Feb 2018 02:13:40 +0000 (02:13 +0000)
committermegan_gardner@apple.com <megan_gardner@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Feb 2018 02:13:40 +0000 (02:13 +0000)
commit5f4d975106e36caa27467d81f1b6efbfc9413180
tree6a6a10d973aa0c0bb272b9e0957e7e46c813e6b4
parentcc9d2080cf318edff192dafa574dc9b7487e9cbb
Fix race-condition in fast/forms/ios/ipad/select-form-run-twice.html
https://bugs.webkit.org/show_bug.cgi?id=182370

Reviewed by Tim Horton.

There is the potential for multiple button clicks, due to looping function calls that can cause timed functions to
still be running in the next test, causing crashes. Guarding against repeated clicks, and cancelling the timers should
clean up this problem.

* fast/forms/ios/ipad/select-form-run-twice.html:
* fast/forms/ios/ipad/unfocus-inside-fixed-hittest.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/ios/ipad/select-form-run-twice.html
LayoutTests/fast/forms/ios/ipad/unfocus-inside-fixed-hittest.html