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

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/lessc/strings.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
#strings {
 
2
  background-image: url("http://son-of-a-banana.com");
 
3
  quotes: "~" "~";
 
4
  content: "#*%:&^,)!.(~*})";
 
5
  empty: "";
 
6
  brackets: "{" "}";
 
7
  escapes: "\"hello\" \\world";
 
8
  escapes2: "\"llo";
 
9
}
 
10
#comments {
 
11
  content: "/* hello */ // not-so-secret";
 
12
}
 
13
#single-quote {
 
14
  quotes: "'" "'";
 
15
  content: '""#!&""';
 
16
  empty: '';
 
17
  semi-colon: ';';
 
18
}
 
19
#escaped {
 
20
  filter: ~"DX.Transform.MS.BS.filter(opacity=50)";
 
21
}
 
22
#one-line { image: url(http://tooks.com) }
 
23
#crazy { image: url(http://), "}", url("http://}") }
 
24
#interpolation {
 
25
  @var: '/dev';
 
26
  url: "http://lesscss.org@{var}/image.jpg";
 
27
 
 
28
  @var2: 256;
 
29
  url2: "http://lesscss.org/image-@{var2}.jpg";
 
30
 
 
31
  @var3: #456;
 
32
  url3: "http://lesscss.org@{var3}";
 
33
 
 
34
  @var4: hello;
 
35
  url4: "http://lesscss.org/@{var4}";
 
36
 
 
37
  @var5: 54.4px;
 
38
  url5: "http://lesscss.org/@{var5}";
 
39
}
 
40
 
 
41
// multiple calls with string interpolation
 
42
 
 
43
.mix-mul (@a: green) {
 
44
    color: ~"@{a}";
 
45
}
 
46
.mix-mul-class {
 
47
    .mix-mul(blue);
 
48
    .mix-mul(red);
 
49
    .mix-mul(black);
 
50
    .mix-mul(orange);
 
51
}
 
52
 
 
53
@test: Arial, Verdana, San-Serif;
 
54
.watermark {
 
55
  @family: ~"Univers, @{test}";
 
56
  family: @family;
 
57
}
 
58
~~~~~~~~~~