Examples of PseudoElement


Examples of com.github.sommeri.less4j.core.ast.PseudoElement

  }

  private PseudoElement createPseudoElement(HiddenTokenAwareTree token, int startIndex, boolean level12Form) {
    List<HiddenTokenAwareTree> children = token.getChildren();
    String name = children.get(startIndex).getText();
    return new PseudoElement(token, name, level12Form);
  }
View Full Code Here

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

Examples of com.volantis.styling.PseudoElement

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

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

Examples of com.volantis.styling.PseudoElement

        // =====================================================================
        //   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

Examples of com.volantis.styling.PseudoElement

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

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

        // =====================================================================
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.