modules/graphics/src/test/java/javafx/css/InsetsTypeTest.java
Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization
*** 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 com.sun.javafx.css;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.IOException;
- import javafx.css.ParsedValue;
import javafx.geometry.Insets;
import javafx.scene.text.Font;
import org.junit.Before;
import org.junit.Test;
! import com.sun.javafx.css.parser.CSSParser;
public class InsetsTypeTest {
String[] css;
--- 21,43 ----
* 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.css;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.IOException;
import javafx.geometry.Insets;
import javafx.scene.text.Font;
import org.junit.Before;
import org.junit.Test;
! import javafx.css.CssParser;
public class InsetsTypeTest {
String[] css;
*** 105,115 ****
public void testConvert() {
for (int i=0; i<css.length; i++) {
Stylesheet stylesheet =
! CSSParser.getInstance().parse("* { -fx-border-insets: " + css[i] + "; }");
ParsedValue value =
TypeTest.getValueFor(stylesheet, "-fx-border-insets");
Insets[] insets = (Insets[]) value.convert(Font.getDefault());
--- 104,114 ----
public void testConvert() {
for (int i=0; i<css.length; i++) {
Stylesheet stylesheet =
! new CssParser().parse("* { -fx-border-insets: " + css[i] + "; }");
ParsedValue value =
TypeTest.getValueFor(stylesheet, "-fx-border-insets");
Insets[] insets = (Insets[]) value.convert(Font.getDefault());