Skip to content

Commit b1ac141

Browse files
committed
Fix linting errors in tests
1 parent e8d5de1 commit b1ac141

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ module.exports = function(grunt) {
129129
src: ['src/**/*.js']
130130
},
131131
tests: {
132-
src: ['test/**/*.js']
132+
src: ['tests/**/*.js']
133133
}
134134
},
135135
watch: {

tests/all-rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* to fail due to Java stack overflow. This must be run separate from other tests.
99
*/
1010
(function(){
11-
11+
/*jshint loopfunc: true */
1212
/*global YUITest, CSSLint*/
1313
var Assert = YUITest.Assert,
1414
suite = new YUITest.TestSuite("General Tests for all Rules"),

tests/rules/box-model.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,6 @@
216216
Assert.areEqual("Using height with border-bottom can sometimes make elements larger than you expect.", result.messages[0].message);
217217
},
218218

219-
"Using height when border-bottom is zero should not result in a warning": function(){
220-
var result = CSSLint.verify(".foo { height: 100px; border-bottom: 0px; }", { "box-model": 1 });
221-
Assert.areEqual(0, result.messages.length);
222-
},
223-
224219
"Using height when border-bottom is zero should not result in a warning": function(){
225220
var result = CSSLint.verify(".foo { height: 100px; border-bottom: 0; }", { "box-model": 1 });
226221
Assert.areEqual(0, result.messages.length);

tests/rules/selector-max-approaching.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
j = i * 4;
1919
css3 += ".selector" + (j+1) + ", .selector" + (j+2) + ", .selector" + (j+3) + ", .selector" + (j+4) + " { background:red; } ";
2020
}
21-
css3 += ".selector4093 { background:red; }.selector4094, .selector4095 { background:red; } "
21+
css3 += ".selector4093 { background:red; }.selector4094, .selector4095 { background:red; } ";
2222

2323
// create css4, which has 1024 rules and 4096 selectors
2424
for (i = 0; i <= 1023; i++) {

tests/rules/selector-max.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
j = i * 4;
1919
css3 += ".selector" + (j+1) + ", .selector" + (j+2) + ", .selector" + (j+3) + ", .selector" + (j+4) + " { background:red; } ";
2020
}
21-
css3 += ".selector4093 { background:red; }.selector4094, .selector4095 { background:red; } "
21+
css3 += ".selector4093 { background:red; }.selector4094, .selector4095 { background:red; } ";
2222

2323
// create css4, which has 1024 rules and 4096 selectors
2424
for (i = 0; i <= 1023; i++) {

0 commit comments

Comments
 (0)