changeset 2872:ced0a6e6f8b4

RT-28292 [TEST-ONLY]: remove @Ignore from Node_effectiveOrientation_Css_Test and replace Toolkit.getToolkit().firePulse(); with root.impl_processCSS(true)
author David Grieve<david.grieve@oracle.com>
date Mon, 11 Mar 2013 13:47:19 -0400
parents ffd70842a48d
children a7abdf74e155
files javafx-ui-common/test/unit/javafx/scene/Node_effectiveOrientation_Css_Test.java
diffstat 1 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/test/unit/javafx/scene/Node_effectiveOrientation_Css_Test.java	Fri Mar 08 16:43:12 2013 -0500
+++ b/javafx-ui-common/test/unit/javafx/scene/Node_effectiveOrientation_Css_Test.java	Mon Mar 11 13:47:19 2013 -0400
@@ -41,7 +41,6 @@
 /**
  * Test :dir functional pseudo-class 
  */
-@org.junit.Ignore
 public class Node_effectiveOrientation_Css_Test {
     
     private Group root;
@@ -79,7 +78,7 @@
         root.getChildren().add(rect);
 
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), LEFT_TO_RIGHT);
         assertEquals(Color.web("#00ff00"), rect.getFill());
@@ -100,7 +99,7 @@
 
         scene.setNodeOrientation(RIGHT_TO_LEFT);
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), RIGHT_TO_LEFT);
         assertEquals(Color.web("#ff0000"), rect.getFill());
@@ -120,7 +119,7 @@
         root.getChildren().add(rect);
 
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), LEFT_TO_RIGHT);
         assertEquals(Color.web("#00ff00"), rect.getFill());
@@ -141,7 +140,7 @@
 
         scene.setNodeOrientation(RIGHT_TO_LEFT);
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), RIGHT_TO_LEFT);
         assertEquals(Color.web("#ff0000"), rect.getFill());
@@ -161,7 +160,7 @@
         root.getChildren().add(rect);
 
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), LEFT_TO_RIGHT);
         assertEquals(Color.web("#00ff00"), rect.getFill());
@@ -182,7 +181,7 @@
 
         scene.setNodeOrientation(RIGHT_TO_LEFT);
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), RIGHT_TO_LEFT);
         assertEquals(Color.web("#ff0000"), rect.getFill());
@@ -204,7 +203,7 @@
         rect.setNodeOrientation(RIGHT_TO_LEFT);
 
         // CSS is applied on next pulse after child is added
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), LEFT_TO_RIGHT);
         assertEquals(rect.getEffectiveNodeOrientation(), RIGHT_TO_LEFT);
@@ -214,7 +213,7 @@
         scene.setNodeOrientation(RIGHT_TO_LEFT);
         rect.setNodeOrientation(LEFT_TO_RIGHT);
         
-        Toolkit.getToolkit().firePulse();
+        root.impl_processCSS(true);
         
         assertEquals(scene.getEffectiveNodeOrientation(), RIGHT_TO_LEFT);
         assertEquals(rect.getEffectiveNodeOrientation(), LEFT_TO_RIGHT);