All this verifies is that some pointerleave event is received.  You should verify that you get a pointermove event targetted at the purple box whose co-ordinates are outside the bounding box of target0 itself, and after that as soon as you get a pointermove with co-ordinates outside the bounding box of the purple element you'll immediately get this pointerleave event (before any other pointermove events).