Attempt to fix the iOS 9 Simulator test bots after <https://trac.webkit.org/changeset...
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Aug 2016 19:12:09 +0000 (19:12 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Aug 2016 19:12:09 +0000 (19:12 +0000)
commit10afe83b5721da25dbd9639d46998a743dce81b2
tree2e4fff3e135c62499e25e61091701ee65161ccb2
parent216c3b7907e4d44a9d177bff6fef4de8f5f812e8
Attempt to fix the iOS 9 Simulator test bots after <https://trac.webkit.org/changeset/204720>
(https://bugs.webkit.org/show_bug.cgi?id=156857)

Fix JavaScript TypeErrors, "undefined is not an object". Both uiController.singleTapAtPoint() and
testRunner.runUIScript() expect to be passed a callback function.

Additionally, explicitly check that window.testRunner is non-null before checking whether
testRunner.runUIScript is non-null to avoid a JavaScript TypeError in desktop Safari.

* http/tests/navigation/ping-attribute/resources/utilities.js:
(clickElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/navigation/ping-attribute/resources/utilities.js