Package com.volantis.styling

Examples of com.volantis.styling.PseudoElement


        DeviceStyles oldDeviceStyles = deviceStyles;

        PseudoStyleEntity entity = nestedStyles.getPseudoStyleEntity();
        boolean valid = false;
        if (entity instanceof PseudoElement) {
            PseudoElement pseudoElement = (PseudoElement) entity;

            if (VALID_PSEUDO_ELEMENTS.contains(pseudoElement)) {
                pseudoStylePath =
                        pseudoStylePath.addPseudoElement(pseudoElement);
                parentValues =
View Full Code Here


        // Update the specificity.
        specificityCalculator.addPseudoElementSelector();

        String pseudoElementName = selector.getPseudoElementType().getType();
        PseudoElement pseudoElement;
        pseudoElement = pseudoStyleEntityProvider.getPseudoElement(
                pseudoElementName);
        pseudoStyleEntities.add(pseudoElement);
    }
View Full Code Here

        // =====================================================================
        //   Create Mocks
        // =====================================================================

        PseudoElement beforeMock = new PseudoElementMock(
                "beforeMock", expectations);

        // =====================================================================
        //   Set Expectations
        // =====================================================================

        pseudoEntityProviderMock.expects.getPseudoElement("before")
                .returns(beforeMock);

        factoryMock.expects.createUniversalMatcher().returns(universalMock);

        // Set the expectations on the specificity calculator.
        specificityCalculatorMock.expects.addPseudoElementSelector();

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        PseudoElementSelector themeSelector =
                themeModelFactory.createPseudoElementSelector("before");
        SelectorSequence sequence = createSelectorSequence(themeSelector);

        MatcherBuilder builder = createMatcherBuilder();
        Matcher matcher = builder.getMatcher(sequence);

        assertSame("Constructed matcher not as expected",
                   universalMock, matcher);
        List entities = builder.getPseudoStyleEntities();
        assertEquals("List should contain one item", 1, entities.size());
        PseudoElement actual = (PseudoElement) entities.get(0);
        assertEquals("Pseudo class set not as expected", beforeMock, actual);
    }
View Full Code Here

        // =====================================================================
        //   Create Mocks
        // =====================================================================

        PseudoElement afterMock = new PseudoElementMock(
                "afterMock", expectations);
        final PseudoElementMock mcsShortcutMock =
                new PseudoElementMock("mcsShortcutMock", expectations);

        // =====================================================================
View Full Code Here

TOP

Related Classes of com.volantis.styling.PseudoElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.