checkCurrent("cv2", cv2, true);
// Dismiss alert. Nothing should happen, since it has
// been superseded by cv2.
dismiss(alert);
new SerialCallback(dpy).invokeAndWait();
checkCurrent("alert", alert, false);
checkCurrent("cv1", cv1, false);
checkCurrent("cv2", cv2, true);
assertFalse("cv1 should not have been shown", cv1.wasShown());
}