modules/graphics/src/test/java/test/javafx/scene/image/ImageForTesting.java
Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:
*** 21,44 ****
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package javafx.scene.image;
/**
* This class is used by RegionTest to be able to manually specify the progress of an Image.
* There is no doubt a better way to do this.
*/
! public class ImageForTesting extends Image {
public ImageForTesting(String url, boolean background) {
super(url, background);
}
public void updateProgress(double value) {
! setProgress(value);
}
public void updateVisuals() {
super.pixelsDirty();
}
}
--- 21,48 ----
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
! package test.javafx.scene.image;
!
! import javafx.scene.image.ImageShim;
!
/**
* This class is used by RegionTest to be able to manually specify the progress of an Image.
* There is no doubt a better way to do this.
*/
! public class ImageForTesting extends ImageShim {
public ImageForTesting(String url, boolean background) {
super(url, background);
}
public void updateProgress(double value) {
! super.shim_setProgress(value);
}
public void updateVisuals() {
super.pixelsDirty();
}
+
}