Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8239822: Intermittent unit test failures in RegionCSSTest #124

Closed
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -41,6 +41,7 @@
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.Rectangle;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Test;

@@ -62,8 +63,7 @@
public StyleManagerTest() {
}

@Before
public void setUp() {
private static void resetStyleManager() {
StyleManagerShim sm = StyleManagerShim.getInstance();
sm.userAgentStylesheetContainers_clear();
sm.platformUserAgentStylesheetContainers_clear();
@@ -72,6 +72,16 @@ public void setUp() {
sm.set_hasDefaultUserAgentStylesheet(false);
}

@Before
public void setUp() {
resetStyleManager();
}

@AfterClass
public static void cleanupOnce() {
resetStyleManager();
}

@Test
public void testMethod_getInstance() {
Scene scene = new Scene(new Group());
@@ -41,6 +41,7 @@
import javafx.scene.shape.Rectangle;
import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Test;

@@ -49,8 +50,7 @@
public Node_cssStateTransition_Test() {
}

@Before
public void setUp() {
private static void resetStyleManager() {
StyleManager sm = StyleManager.getInstance();
sm.userAgentStylesheetContainers.clear();
sm.platformUserAgentStylesheetContainers.clear();
@@ -59,6 +59,16 @@ public void setUp() {
sm.hasDefaultUserAgentStylesheet = false;
}

@Before
public void setUp() {
resetStyleManager();
}

@AfterClass
public static void cleanupOnce() {
resetStyleManager();
}

@Test
public void testPropertiesResetOnStyleclassChange() {

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.