Permalink
Browse files

Use an element rather than a class for the 'regular rule' test. This …

…avoids conflicts with rules about naming conventions.
  • Loading branch information...
1 parent 2a2cac5 commit 421b9d3823628fcae3473b4bb27c9ad675adde69 @mahonnaise committed May 20, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 tests/all-rules.js
View
@@ -16,19 +16,19 @@
i, len;
for (i=0, len=25; i < len; i++){
-
+
(function(i, rules){
suite.add(new YUITest.TestCase({
name: "General Tests for " + rules[i].id,
-
+
setUp: function(){
this.options = {};
this.options[rules[i].id] = 1;
},
- "Using @keyframes should not result in an error": function(){
+ "Using @keyframes should not result in an error": function(){
var result = CSSLint.verify("@keyframes resize { 0% {padding: 0;} 50% {padding: 0;} 100% {padding: 0;}}", this.options);
Assert.areEqual(0, result.messages.length);
},
@@ -42,21 +42,21 @@
var result = CSSLint.verify("@page { width: 100px; }", this.options);
Assert.areEqual(0, result.messages.length);
},
-
+
"Using @page @top-left should not result in an error": function(){
var result = CSSLint.verify("@page { @top-left { content: ''; } }", this.options);
Assert.areEqual(0, result.messages.length);
},
-
+
"Using a regular rule should not result in an error": function(){
- var result = CSSLint.verify(".foo { width: 100px; }", this.options);
+ var result = CSSLint.verify("div { width: 100px; }", this.options);
Assert.areEqual(0, result.messages.length);
- }
+ }
}));
-
+
})(i, rules);
-
+
}
YUITest.TestRunner.add(suite);

0 comments on commit 421b9d3

Please sign in to comment.