modules/graphics/src/test/java/javafx/scene/layout/RegionCSSTest.java
Print this page
rev 6167 : RT-35330 [Monocle] Remove StubToolkit and replace it with headless glass implementation
@@ -23,20 +23,22 @@
* questions.
*/
package javafx.scene.layout;
+import com.sun.javafx.FXUnit;
import com.sun.javafx.pgstub.StubImageLoaderFactory;
import com.sun.javafx.pgstub.StubPlatformImageInfo;
import com.sun.javafx.pgstub.StubToolkit;
import com.sun.javafx.tk.Toolkit;
import javafx.geometry.Insets;
import javafx.geometry.Side;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import org.junit.Before;
import org.junit.Ignore;
+import org.junit.Rule;
import org.junit.Test;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
@@ -52,10 +54,14 @@
* The "Example" tests are pulled directly from one of the examples in the
* spec, and is numbered such as example1_3, meaning "Example 1" in the spec
* which is a box with multiple declarations, so declaration 3 (or whatnot).
*/
public class RegionCSSTest {
+
+ @Rule
+ public FXUnit fx = new FXUnit();
+
// The color is drawn behind any background images.
// The background color is clipped according to the ???background-clip??? value associated with the bottom-most background image.
// Background images are drawn such that the first specified is on "top", closer to the user. But our BackgroundFill's are completely backwards from that!
// Test "none" in terms of supplying an insets to the first and third but not specifying the second?