changeset 3828:9574c86c4067

[UNIT TEST] fix compile error in RuleTest and CssMetaDataTest.
author David Grieve<david.grieve@oracle.com>
date Tue, 14 May 2013 18:17:13 -0700
parents 3f4e67f06aad
children ca11ca2535b2
files javafx-ui-common/test/unit/com/sun/javafx/css/CssMetaDataTest.java javafx-ui-common/test/unit/com/sun/javafx/css/RuleTest.java
diffstat 2 files changed, 0 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/test/unit/com/sun/javafx/css/CssMetaDataTest.java	Tue May 14 17:38:25 2013 -0700
+++ b/javafx-ui-common/test/unit/com/sun/javafx/css/CssMetaDataTest.java	Tue May 14 18:17:13 2013 -0700
@@ -240,35 +240,6 @@
         assertTrue(testNodeOpacity.equals(nodeOpacity));
     }
 
-    /**
-     * Helper for testGetMatchingStyles
-     */
-    List<CascadingStyle> match(Node node, Stylesheet stylesheet) {
-
-        List<CascadingStyle> styles = new ArrayList<CascadingStyle>();
-
-        int ord = 0;
-        for (Rule rule : stylesheet.getRules()) {
-            final List<Match> matches = rule.matches(node);
-            if (matches == null || matches.isEmpty()) continue;
-            for (Match match : matches) {
-                if (match == null) continue;
-                for (Declaration declaration : rule.getDeclarations()) {
-                    styles.add(
-                            new CascadingStyle(
-                                    new Style(match.selector, declaration),
-                                    match.pseudoClasses,
-                                    match.specificity,
-                                    ord++
-                            )
-                    );
-                }
-            }
-        }
-
-        return styles;
-    }
-
     static int ord = 0;
     static CascadingStyle createCascadingStyle(Selector selector, Declaration declaration) {
 
--- a/javafx-ui-common/test/unit/com/sun/javafx/css/RuleTest.java	Tue May 14 17:38:25 2013 -0700
+++ b/javafx-ui-common/test/unit/com/sun/javafx/css/RuleTest.java	Tue May 14 18:17:13 2013 -0700
@@ -121,17 +121,6 @@
         StyleOrigin result = instance.getOrigin();
         assertNull(result);
     }
-    
-    @Ignore @Test
-    public void testMatches_Node() {
-        System.out.println("matches");
-        Node node = null;
-        Rule instance = null;
-        List expResult = null;
-        List result = instance.matches(node);
-        assertEquals(expResult, result);
-        fail("The test case is a prototype.");
-    }
 
     @Ignore @Test
     public void testApplies() {