File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 } ,
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 ) ;
You can’t perform that action at this time.
0 commit comments