tst_qquickpopup: stabilize closePolicy on Android and macOS


On Android 17 with the EGL surface lifecycle changes,
closePolicy can place an inside press outside the popup.
The cached parent position is stale after relayout. Map the
popup-local point through the current popup item instead.

On macOS 27.0.1 arm64, the native Cocoa Basic run reports
16 failures at QTest::qWaitForWindowActive(window) after
fixture teardown. Cocoa activation only makes the window
key. Raise each fixture to also activate the application.
The same run then passes all closePolicy rows.

Pick-to: 6.12
Change-Id: I344d4230abb1f299f128cbd59c0ce3296497f031
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
commit75a64591ea3b97840d712b517b7ba126f305ed0a
parentd07dbabe4c5f38879aa709b7bdfb88005bcf0fa0
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeThu, 15 Oct 2026 17:04:29 +0000