diff options
Diffstat (limited to 'test/bem/_iro-bem-at-theme.scss')
-rw-r--r-- | test/bem/_iro-bem-at-theme.scss | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/test/bem/_iro-bem-at-theme.scss b/test/bem/_iro-bem-at-theme.scss new file mode 100644 index 0000000..d2d0696 --- /dev/null +++ b/test/bem/_iro-bem-at-theme.scss | |||
@@ -0,0 +1,55 @@ | |||
1 | // sass-lint:disable class-name-format force-element-nesting force-pseudo-nesting mixins-before-declarations | ||
2 | |||
3 | // | ||
4 | // Included test cases: | ||
5 | // - /// 1 /// - single theme | ||
6 | // - /// 2 /// - with sub-theme | ||
7 | // | ||
8 | |||
9 | @include it('iro-bem-at-theme') { | ||
10 | @include assert('single theme') { /// 1 /// | ||
11 | @include output(false) { | ||
12 | @include iro-bem-block('something') { | ||
13 | @include iro-bem-at-theme('theme') { | ||
14 | font-size: 2em; | ||
15 | } | ||
16 | } | ||
17 | } | ||
18 | |||
19 | @include expect(false) { | ||
20 | .t-theme .something, | ||
21 | [class*=' t-'] .t-theme .something, | ||
22 | [class^='t-'] .t-theme .something { | ||
23 | font-size: 2em; | ||
24 | } | ||
25 | } | ||
26 | } | ||
27 | |||
28 | @include assert('with sub-theme') { /// 2 /// | ||
29 | @include output(false) { | ||
30 | @include iro-bem-block('something') { | ||
31 | @include iro-bem-at-theme('theme') { | ||
32 | font-size: 2em; | ||
33 | } | ||
34 | |||
35 | @include iro-bem-at-theme('theme', 'subtheme') { | ||
36 | font-size: 3em; | ||
37 | } | ||
38 | } | ||
39 | } | ||
40 | |||
41 | @include expect(false) { | ||
42 | .t-theme .something, | ||
43 | [class*=' t-'] .t-theme .something, | ||
44 | [class^='t-'] .t-theme .something { | ||
45 | font-size: 2em; | ||
46 | } | ||
47 | |||
48 | .t-theme .t-subtheme .something, | ||
49 | [class*=' t-'] .t-theme .t-subtheme .something, | ||
50 | [class^='t-'] .t-theme .t-subtheme .something { | ||
51 | font-size: 3em; | ||
52 | } | ||
53 | } | ||
54 | } | ||
55 | } | ||