|
11 | 11 | var result = CSSLint.verify(".foo{text-indent: -100px;}", {"text-indent": 1 }); |
12 | 12 | Assert.areEqual(1, result.messages.length); |
13 | 13 | Assert.areEqual("warning", result.messages[0].type); |
14 | | - Assert.areEqual("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", result.messages[0].message); |
| 14 | + Assert.areEqual("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.", result.messages[0].message); |
15 | 15 | }, |
16 | 16 |
|
17 | 17 | "-98px text-indent should not result in a warning": function(){ |
|
24 | 24 | Assert.areEqual(0, result.messages.length); |
25 | 25 | }, |
26 | 26 |
|
| 27 | + "-100px text-indent with RTL should result in a warning": function(){ |
| 28 | + var result = CSSLint.verify(".foo{text-indent: -100px; direction: rtl; }", {"text-indent": 1 }); |
| 29 | + Assert.areEqual(1, result.messages.length); |
| 30 | + Assert.areEqual("warning", result.messages[0].type); |
| 31 | + Assert.areEqual("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.", result.messages[0].message); |
| 32 | + }, |
| 33 | + |
27 | 34 | "5px text-indent should not result in a warning": function(){ |
28 | 35 | var result = CSSLint.verify(".foo{text-indent: 5px;}", {"text-indent": 1 }); |
29 | 36 | Assert.areEqual(0, result.messages.length); |
|
33 | 40 | var result = CSSLint.verify(".top h1 a { background: url(../images/background/logo.png) no-repeat; display: block; height: 44px; position: relative; text-indent: -9999px; width: 250px; }", { "text-indent": 1 }); |
34 | 41 | Assert.areEqual(1, result.messages.length); |
35 | 42 | Assert.areEqual("warning", result.messages[0].type); |
36 | | - Assert.areEqual("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", result.messages[0].message); |
| 43 | + Assert.areEqual("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.", result.messages[0].message); |
37 | 44 | } |
38 | 45 |
|
39 | 46 | })); |
|
0 commit comments