Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #278 from mahonnaise/all-rules

The regular rule test should be as bland as possible
  • Loading branch information...
commit c4294356192e571647008cff85e326576774b492 2 parents 2a2cac5 + 97265f5
@nzakas nzakas authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 tests/all-rules.js
View
18 tests/all-rules.js
@@ -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("body { margin: 0; }", this.options);
Assert.areEqual(0, result.messages.length);
- }
+ }
}));
-
+
})(i, rules);
-
+
}
YUITest.TestRunner.add(suite);
Please sign in to comment.
Something went wrong with that request. Please try again.