bright-gpu-74537
08/09/2022, 7:56 PMHaxe Compiler 4.1.5loud-salesclerk-7438
08/09/2022, 7:58 PMbright-gpu-74537
08/09/2022, 7:59 PMloud-salesclerk-7438
08/09/2022, 8:03 PMloud-salesclerk-7438
08/09/2022, 8:05 PMfindComponentUnderPoint for.
so e.g. my testcase says find a button with id mybutton and then click on that button. if I just take x/y center-point of mybutton and send a lime event, then I have no way of knowing if that click hits. so finding out if the component on which a click should happen actually received that event is part of the protocol.
a click is either a success or a failure and the testcase can deal with success or failure. sometimes failure is expected, for example when a button is underneath a modal window.bright-gpu-74537
08/09/2022, 8:07 PM["modal-background", "main-view", "hbox", "button"] for that call, where as in this specific case ["main-view", "hbox", "button"] is really waht you are after?bright-gpu-74537
08/09/2022, 8:08 PMloud-salesclerk-7438
08/09/2022, 8:08 PMbright-gpu-74537
08/09/2022, 8:09 PMloud-salesclerk-7438
08/09/2022, 8:11 PMbright-gpu-74537
08/09/2022, 8:13 PMbright-gpu-74537
08/09/2022, 8:14 PMloud-salesclerk-7438
08/09/2022, 8:15 PMbright-gpu-74537
08/09/2022, 8:15 PMbright-gpu-74537
08/09/2022, 8:15 PMloud-salesclerk-7438
08/09/2022, 8:17 PMobj is Type and some modul level fields, which makes it not compatible with anything below 4.2. but that should be easily fixablebright-gpu-74537
08/09/2022, 8:18 PMif ((obj is Type)) - not as nice, but works on all haxe versionsloud-salesclerk-7438
08/09/2022, 8:21 PMbright-gpu-74537
08/09/2022, 8:27 PMbright-gpu-74537
08/09/2022, 8:28 PMbright-gpu-74537
08/09/2022, 8:28 PMvar copy = rootComponents.copy();
copy.reverse();bright-gpu-74537
08/09/2022, 8:28 PMbright-gpu-74537
08/09/2022, 8:29 PMloud-salesclerk-7438
08/09/2022, 8:37 PMbright-gpu-74537
08/09/2022, 8:39 PMloud-salesclerk-7438
08/09/2022, 8:42 PMloud-salesclerk-7438
08/09/2022, 8:42 PMbright-gpu-74537
08/09/2022, 8:42 PMbright-gpu-74537
08/09/2022, 8:43 PMbright-gpu-74537
08/09/2022, 8:48 PM