I was unable to write an automated test case for Bug 159288 because DRT, WKTR, and TestWebKitAPI lack a mechanism to display and invoke choices in iOS Action/Alert sheets. We should provide some mechanism to do so to support better testing.