Examples of IncludeDirectiveType


Examples of org.auraframework.util.javascript.directive.impl.IncludeDirectiveType

     */
    public void testNestedDirective() throws Exception {
        File file = getResourceFile("/testdata/javascript/testNestedDirective.js");
        DirectiveBasedJavascriptGroup jg = new DirectiveBasedJavascriptGroup("testDummy", file.getParentFile(),
                file.getName(), ImmutableList.<DirectiveType<?>> of(DirectiveFactory.getMultiLineMockDirectiveType(),
                        new IncludeDirectiveType()), EnumSet.of(JavascriptGeneratorMode.TESTING));
        DirectiveParser dp = new DirectiveParser(jg, jg.getStartFile());
        dp.parseFile();
        List<JavascriptProcessingError> error = dp.validate(new JavascriptValidator());
        assertTrue("Should have thrown an error for encoutering a multi-line directive", error.size() == 1);
        assertTrue("The only error should have been for an unmatched end directive.", error.listIterator().next()
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.