n.pointerId.");
                        assert_equals(event.isPrimary, pointerdown_event.isPrimary, "pointerup.isPrimary should be the same as pointerdown.isPrimary.");
                    });
                    pointermove_events.delete(event.pointerId);
                    pointerdown_events.delete(event.pointerId);
                    if (pointerdown_events.size == 0) {
                        // Make sure the test finishes after all the input actions are completed.
                        actions_promi