aboutsummaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/MixinExtraParameters.java
blob: 79c2ec366aed17dbb1320dce168fc03f367b3c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.vaadin.sass.testcases.scss;

import org.junit.Assert;
import org.junit.Test;

import com.vaadin.sass.AbstractTestBase;
import com.vaadin.sass.internal.ScssStylesheet;

public class MixinExtraParameters extends AbstractTestBase {
    String scss = "/scss/mixin-extra-params.scss";

    @Test
    public void testCompiler() {
        ScssStylesheet sheet;
        try {
            sheet = getStyleSheet(scss);
            sheet.compile();
        } catch (RuntimeException e) {
            Assert.assertEquals(e.getMessage(),
                    "More parameters than expected, in Mixin test");
        } catch (Exception e) {
            Assert.fail();
        }
    }
}