< prev index next >

modules/javafx.graphics/src/test/java/test/javafx/scene/NodeTest.java

Print this page

 144 
 145         // Test various onMouseXXX event handlers
 146 
 147         // Test onKeyXXX handlers
 148 
 149         // Test focused is updated?
 150         // Test nodes which are not focusable are not focused!
 151         // Test focus... (SHOULD NOT DEPEND ON KEY LISTENERS BEING INSTALLED!!)
 152 
 153         // Test that clip is taken into account for both "contains" and
 154         // "intersects". See http://javafx-jira.kenai.com/browse/RT-646
 155 
 156 
 157 
 158     /***************************************************************************
 159      *                                                                         *
 160      *                              Basic Node Tests                           *
 161      *                                                                         *
 162      **************************************************************************/
 163 







 164 // TODO disable this because it depends on TestNode
 165 //    @Test public void testPeerNotifiedOfVisibilityChanges() {
 166 //        Rectangle rect = new Rectangle();
 167 //        Node peer = rect.impl_getPGNode();
 168 //        assertEquals(peer.visible, rect.visible);
 169 //
 170 //        rect.visible = false;
 171 //        assertEquals(peer.visible, rect.visible);
 172 //
 173 //        rect.visible = true;
 174 //        assertEquals(peer.visible, rect.visible);
 175 //    }
 176 
 177     /***************************************************************************
 178      *                                                                         *
 179      *                            Testing Node Bounds                          *
 180      *                                                                         *
 181      **************************************************************************/
 182 
 183 // TODO disable this because it depends on TestNode

 144 
 145         // Test various onMouseXXX event handlers
 146 
 147         // Test onKeyXXX handlers
 148 
 149         // Test focused is updated?
 150         // Test nodes which are not focusable are not focused!
 151         // Test focus... (SHOULD NOT DEPEND ON KEY LISTENERS BEING INSTALLED!!)
 152 
 153         // Test that clip is taken into account for both "contains" and
 154         // "intersects". See http://javafx-jira.kenai.com/browse/RT-646
 155 
 156 
 157 
 158     /***************************************************************************
 159      *                                                                         *
 160      *                              Basic Node Tests                           *
 161      *                                                                         *
 162      **************************************************************************/
 163 
 164     @Test
 165     public void testGetPseudoClassStatesShouldReturnSameSet() {
 166         Rectangle node = new Rectangle();
 167         assertSame("getPseudoClassStates() should always return the same instance",
 168                 node.getPseudoClassStates(), node.getPseudoClassStates());
 169     }
 170 
 171 // TODO disable this because it depends on TestNode
 172 //    @Test public void testPeerNotifiedOfVisibilityChanges() {
 173 //        Rectangle rect = new Rectangle();
 174 //        Node peer = rect.impl_getPGNode();
 175 //        assertEquals(peer.visible, rect.visible);
 176 //
 177 //        rect.visible = false;
 178 //        assertEquals(peer.visible, rect.visible);
 179 //
 180 //        rect.visible = true;
 181 //        assertEquals(peer.visible, rect.visible);
 182 //    }
 183 
 184     /***************************************************************************
 185      *                                                                         *
 186      *                            Testing Node Bounds                          *
 187      *                                                                         *
 188      **************************************************************************/
 189 
 190 // TODO disable this because it depends on TestNode
< prev index next >