Examples of appendThemeDescriptor()


Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

    }

    /** tests that the css url includes themes explicitly added to context */
    public void testCssUrlContextSpecifiedThemes() throws Exception {
        AuraContext ctx = setupContext();
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme2", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme3", ThemeDef.class));
        goldFileAppCssUrl();
    }

View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

    /** tests that the css url includes themes explicitly added to context */
    public void testCssUrlContextSpecifiedThemes() throws Exception {
        AuraContext ctx = setupContext();
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme2", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme3", ThemeDef.class));
        goldFileAppCssUrl();
    }

    /**
 
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

    /** tests that the css url includes themes explicitly added to context */
    public void testCssUrlContextSpecifiedThemes() throws Exception {
        AuraContext ctx = setupContext();
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme2", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme3", ThemeDef.class));
        goldFileAppCssUrl();
    }

    /**
     * tests that the css url includes themes from the app and also ones explicitly added to context. The app theme
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

     * tests that the css url includes themes from the app and also ones explicitly added to context. The app theme
     * should come first.
     */
    public void testCssUrlContextSpecifiedAndAppSpecifiedThemes() throws Exception {
        AuraContext ctx = setupContextWithAppReferencingThemes("test:fakeTheme3");
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme2", ThemeDef.class));
        goldFileAppCssUrl();
    }

    /** test that the css url includes multiple app-specified themes and in the correct order */
    public void testCssUrlWithMultipleAppThemes() throws Exception {
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

    /** test that the css url includes a hash when a map-provided theme is used */
    public void testSerializeWithMapProvidedTheme() throws Exception {
        String name = "test:fakeThemeWithMapProvider";
        DefDescriptor<ThemeDef> theme = DefDescriptorImpl.getInstance(name, ThemeDef.class);
        AuraContext ctx = setupContextWithAppReferencingThemes(theme.getDescriptorName());
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme3", ThemeDef.class));
        goldFileAppCssUrl();
    }

    private AuraContext setupContext() {
        if (Aura.getContextService().isEstablished()) {
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

                .startContext(Mode.UTEST, Format.JSON, Authentication.UNAUTHENTICATED);

        DefDescriptor<ThemeDef> t1 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        DefDescriptor<ThemeDef> t2 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        DefDescriptor<ThemeDef> t3 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        ctx.appendThemeDescriptor(t1);
        ctx.appendThemeDescriptor(t2);
        ctx.appendThemeDescriptor(t3);

        ThemeList explicit = ctx.getThemeList();
        assertEquals(explicit.get(0), t1);
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

        DefDescriptor<ThemeDef> t1 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        DefDescriptor<ThemeDef> t2 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        DefDescriptor<ThemeDef> t3 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        ctx.appendThemeDescriptor(t1);
        ctx.appendThemeDescriptor(t2);
        ctx.appendThemeDescriptor(t3);

        ThemeList explicit = ctx.getThemeList();
        assertEquals(explicit.get(0), t1);
        assertEquals(explicit.get(1), t2);
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

        DefDescriptor<ThemeDef> t1 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        DefDescriptor<ThemeDef> t2 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        DefDescriptor<ThemeDef> t3 = addSourceAutoCleanup(ThemeDef.class, "<aura:theme/>");
        ctx.appendThemeDescriptor(t1);
        ctx.appendThemeDescriptor(t2);
        ctx.appendThemeDescriptor(t3);

        ThemeList explicit = ctx.getThemeList();
        assertEquals(explicit.get(0), t1);
        assertEquals(explicit.get(1), t2);
        assertEquals(explicit.get(2), t3);
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

        AuraContext ctx = Aura.getContextService()
                .startContext(Mode.UTEST, Format.JSON, Authentication.UNAUTHENTICATED, app);
        ctx.setSerializeThemes(true);

        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme2", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeThemeWithMapProvider", ThemeDef.class));
        ctx.addAppThemeDescriptors();
        String res = getAuraTestingUtil().getSerializedAuraContext(ctx);
        // expected order
        // "test:fakeTheme" (app specified comes first)
View Full Code Here

Examples of org.auraframework.system.AuraContext.appendThemeDescriptor()

        AuraContext ctx = Aura.getContextService()
                .startContext(Mode.UTEST, Format.JSON, Authentication.UNAUTHENTICATED, app);
        ctx.setSerializeThemes(true);

        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeTheme2", ThemeDef.class));
        ctx.appendThemeDescriptor(DefDescriptorImpl.getInstance("test:fakeThemeWithMapProvider", ThemeDef.class));
        ctx.addAppThemeDescriptors();
        String res = getAuraTestingUtil().getSerializedAuraContext(ctx);
        // expected order
        // "test:fakeTheme" (app specified comes first)
        // "test:fakeTheme2" (explicit order)
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.