< prev index next >
tests/system/src/test/java/test/com/sun/javafx/css/StylesheetWithSecurityManagerTest.java
Print this page
rev 9491 : 8145203: Refactor systemTests for clear separation of tests
Reviewed-by: kcr
*** 1,12 ****
! package com.sun.javafx.css;
import javafx.css.Declaration;
import javafx.css.Rule;
import javafx.css.Selector;
import com.sun.javafx.css.StyleManager;
import javafx.css.Stylesheet;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.ObservableSet;
import javafx.css.CssMetaData;
--- 1,13 ----
! package test.com.sun.javafx.css;
import javafx.css.Declaration;
import javafx.css.Rule;
import javafx.css.Selector;
import com.sun.javafx.css.StyleManager;
+ import com.sun.javafx.css.StyleManager;
import javafx.css.Stylesheet;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.ObservableSet;
import javafx.css.CssMetaData;
*** 97,107 ****
@Test
public void testRT_38395_the_sequel() throws Exception {
System.setSecurityManager(new TestSecurityManager());
! Stylesheet stylesheet = StyleManager.loadStylesheet("com/sun/javafx/css/StylesheetTest.css");
assertNotNull(stylesheet);
Color hoverBase = null;
for(Rule rule : stylesheet.getRules()) {
for (Selector s : rule.getSelectors()) {
--- 98,108 ----
@Test
public void testRT_38395_the_sequel() throws Exception {
System.setSecurityManager(new TestSecurityManager());
! Stylesheet stylesheet = StyleManager.loadStylesheet("test/com/sun/javafx/css/StylesheetTest.css");
assertNotNull(stylesheet);
Color hoverBase = null;
for(Rule rule : stylesheet.getRules()) {
for (Selector s : rule.getSelectors()) {
< prev index next >