diff options
| author | Stefan Kangas | 2020-09-10 20:40:34 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-09-10 20:40:34 +0200 |
| commit | 4ba71eee8d8991c95028df40cb784cb9cb2e964d (patch) | |
| tree | 9826418e930e28560e53e726fc4ab1b4bfc791b0 /test/lisp/textmodes/css-mode-resources | |
| parent | 498773447ad0640b500572915a15958ac7320f2d (diff) | |
| download | emacs-4ba71eee8d8991c95028df40cb784cb9cb2e964d.tar.gz emacs-4ba71eee8d8991c95028df40cb784cb9cb2e964d.zip | |
Convert indent test for css-mode into automatic test
* test/lisp/textmodes/css-mode-tests.el (css-mode-test-indent): New
test.
(css-mode-tests-data-dir): New variable.
* test/manual/indent/css-mode.css: Move from here...
* test/lisp/textmodes/css-mode-resources/test-indent.css: ...to here.
Diffstat (limited to 'test/lisp/textmodes/css-mode-resources')
| -rw-r--r-- | test/lisp/textmodes/css-mode-resources/test-indent.css | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/test/lisp/textmodes/css-mode-resources/test-indent.css b/test/lisp/textmodes/css-mode-resources/test-indent.css new file mode 100644 index 00000000000..041aeec1b15 --- /dev/null +++ b/test/lisp/textmodes/css-mode-resources/test-indent.css | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | /* asdfasdf */ | ||
| 2 | |||
| 3 | .xxx | ||
| 4 | { | ||
| 5 | } | ||
| 6 | |||
| 7 | article[role="main"] { | ||
| 8 | width: 60%; | ||
| 9 | } | ||
| 10 | |||
| 11 | a, b:hover, c { | ||
| 12 | color: black !important; | ||
| 13 | } | ||
| 14 | |||
| 15 | a, b:hover { /* bug:20282 */ | ||
| 16 | c { | ||
| 17 | color: black; | ||
| 18 | } | ||
| 19 | color: black; | ||
| 20 | } | ||
| 21 | |||
| 22 | a.b:c,d.e:f,g[h]:i,j[k]:l,.m.n:o,.p.q:r,.s[t]:u,.v[w]:x { /* bug:20282 */ | ||
| 23 | background-color: white; | ||
| 24 | } | ||
| 25 | |||
| 26 | /* asdfasdf */ | ||
| 27 | @foo x2 { | ||
| 28 | bla:toto; | ||
| 29 | } | ||
| 30 | .x2 | ||
| 31 | { | ||
| 32 | /* foo: bar; */ foo2: bar2; | ||
| 33 | bar1: url("http://toto/titi"); | ||
| 34 | bar2: url('http://toto/titi'); | ||
| 35 | bar3: url(http://toto/titi); | ||
| 36 | } | ||
| 37 | |||
| 38 | div.x3 | ||
| 39 | { | ||
| 40 | } | ||
| 41 | |||
| 42 | article:hover | ||
| 43 | { | ||
| 44 | color: black; | ||
| 45 | } | ||
| 46 | |||
| 47 | /* bug:13425 */ | ||
| 48 | div:first-child, | ||
| 49 | div:last-child, | ||
| 50 | div[disabled], | ||
| 51 | div::before { | ||
| 52 | font: 15px "Helvetica Neue", | ||
| 53 | Helvetica, | ||
| 54 | Arial, | ||
| 55 | "Nimbus Sans L", | ||
| 56 | sans-serif; | ||
| 57 | font: 15px "Helvetica Neue", Helvetica, Arial, | ||
| 58 | "Nimbus Sans L", sans-serif; | ||
| 59 | background: no-repeat right | ||
| 60 | 5px center; | ||
| 61 | transform: matrix(1.0, 2.0, | ||
| 62 | 3.0, 4.0, | ||
| 63 | 5.0, 6.0); | ||
| 64 | transform: matrix( | ||
| 65 | 1.0, 2.0, | ||
| 66 | 3.0, 4.0, | ||
| 67 | 5.0, 6.0 | ||
| 68 | ); | ||
| 69 | } | ||
| 70 | |||
| 71 | /* Multi-line selector including both a pseudo-class and | ||
| 72 | parenthesis. */ | ||
| 73 | .form-group:not(.required) label, | ||
| 74 | .birth-date .row > * { | ||
| 75 | &::after { | ||
| 76 | display: inline; | ||
| 77 | font-weight: normal; | ||
| 78 | } | ||
| 79 | } | ||
| 80 | |||
| 81 | @font-face { | ||
| 82 | src: url("Sans-Regular.eot") format("eot"), | ||
| 83 | url("Sans-Regular.woff") format("woff"), | ||
| 84 | url("Sans-Regular.ttf") format("truetype"); | ||
| 85 | } | ||
| 86 | |||
| 87 | @font-face { | ||
| 88 | src: | ||
| 89 | url("Sans-Regular.eot") format("eot"), | ||
| 90 | url("Sans-Regular.woff") format("woff"); | ||
| 91 | } | ||
| 92 | |||
| 93 | .foo-bar--baz { | ||
| 94 | --foo-variable: 5px; | ||
| 95 | --_variable_with_underscores: #fff; | ||
| 96 | --_variable-starting-with-underscore: none; | ||
| 97 | margin: var(--foo-variable); | ||
| 98 | color: var(--_variable_with_underscores); | ||
| 99 | display: var(--_variable-starting-with-underscore); | ||
| 100 | } | ||