Run iframe move test from an event handler to avoid a race condition.