~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/lessc/mixins-interpolated.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
@a1: foo;
 
3
@a2: ~".foo";
 
4
@a4: ~"#foo";
 
5
 
 
6
.@{a1} {
 
7
    a: 1;
 
8
}
 
9
 
 
10
@{a2} {
 
11
    a: 2;
 
12
}
 
13
 
 
14
#@{a1} {
 
15
    a: 3;
 
16
}
 
17
 
 
18
@{a4} {
 
19
    a: 4;
 
20
}
 
21
 
 
22
mi-test-a {
 
23
    .foo;
 
24
    #foo;
 
25
}
 
26
 
 
27
.b .bb {
 
28
    &.@{a1}-xxx .yyy-@{a1}@{a4} {
 
29
        & @{a2}.bbb {
 
30
            b: 1;
 
31
        }
 
32
    }
 
33
}
 
34
 
 
35
mi-test-b {
 
36
    .b.bb.foo-xxx.yyy-foo#foo.foo.bbb;
 
37
}
 
38
 
 
39
@c1: @a1;
 
40
@c2: bar;
 
41
@c3: baz;
 
42
 
 
43
#@{c1}-foo {
 
44
    > .@{c2} {
 
45
        .@{c3} {
 
46
            c: c;
 
47
        }
 
48
    }
 
49
}
 
50
 
 
51
mi-test-c {
 
52
    &-1 {#foo-foo;}
 
53
    &-2 {#foo-foo > .bar;}
 
54
    &-3 {#foo-foo > .bar.baz;}
 
55
}
 
56
 
 
57
.Person(@name, @gender_) {
 
58
    .@{name} {
 
59
        @gender: @gender_;
 
60
        .sayGender() {
 
61
            gender: @gender;
 
62
        }
 
63
    }
 
64
}
 
65
 
 
66
mi-test-d {
 
67
    .Person(person, "Male");
 
68
    .person.sayGender();
 
69
}
 
70
~~~~~~~~~~