511512513514515516517518519520521
public void testNativePreviewEventAccessors() { // cancelNativeEvent { NativePreviewEvent event = new NativePreviewEvent(); assertFalse(event.isCanceled()); event.cancel(); assertTrue(event.isCanceled()); } // preventCancelNativeEvent {
526527528529530531532533534535536
} // revive { NativePreviewEvent event = new NativePreviewEvent(); event.cancel(); event.consume(); assertTrue(event.isCanceled()); assertTrue(event.isConsumed()); event.revive(); assertFalse(event.isCanceled());