Skip to content

Commit c429435

Browse files
committed
Merge pull request #278 from mahonnaise/all-rules
The regular rule test should be as bland as possible
2 parents 2a2cac5 + 97265f5 commit c429435

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tests/all-rules.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
i, len;
1717

1818
for (i=0, len=25; i < len; i++){
19-
19+
2020
(function(i, rules){
2121

2222
suite.add(new YUITest.TestCase({
2323

2424
name: "General Tests for " + rules[i].id,
25-
25+
2626
setUp: function(){
2727
this.options = {};
2828
this.options[rules[i].id] = 1;
2929
},
3030

31-
"Using @keyframes should not result in an error": function(){
31+
"Using @keyframes should not result in an error": function(){
3232
var result = CSSLint.verify("@keyframes resize { 0% {padding: 0;} 50% {padding: 0;} 100% {padding: 0;}}", this.options);
3333
Assert.areEqual(0, result.messages.length);
3434
},
@@ -42,21 +42,21 @@
4242
var result = CSSLint.verify("@page { width: 100px; }", this.options);
4343
Assert.areEqual(0, result.messages.length);
4444
},
45-
45+
4646
"Using @page @top-left should not result in an error": function(){
4747
var result = CSSLint.verify("@page { @top-left { content: ''; } }", this.options);
4848
Assert.areEqual(0, result.messages.length);
4949
},
50-
50+
5151
"Using a regular rule should not result in an error": function(){
52-
var result = CSSLint.verify(".foo { width: 100px; }", this.options);
52+
var result = CSSLint.verify("body { margin: 0; }", this.options);
5353
Assert.areEqual(0, result.messages.length);
54-
}
54+
}
5555

5656
}));
57-
57+
5858
})(i, rules);
59-
59+
6060
}
6161

6262
YUITest.TestRunner.add(suite);

0 commit comments

Comments
 (0)