from returning a single number, to the HC equivalent of "line x of [card | background] field". I had it so it throws an exception when the target is not a field. I suppose, someone might want to programmatically query this function by sending a click event on a mouse location (mouseLoc) on top of the field, but they wouldn't know which line to click, as clicking on lines of a field is not a HC or WyldCard command.
I just realized I missed a negative test. Will do it next time I work on the project.
from returning a single number, to the HC equivalent of "line x of [card | background] field". I had it so it throws an exception when the target is not a field. I suppose, someone might want to programmatically query this function by sending a click event on a mouse location (
mouseLoc
) on top of the field, but they wouldn't know which line to click, as clicking on lines of a field is not a HC or WyldCard command.I just realized I missed a negative test. Will do it next time I work on the project.
To physically test this functionality, feel free to use the attached WC stack. functional-field-tests.stack.zip