Browse files

Made more Ruby-oriented tests optional

  • Loading branch information...
1 parent 37c0209 commit 452ffc435a81ef1a15e71689a7f3572371bc5d78 @norman norman committed Oct 14, 2010
Showing with 21 additions and 10 deletions.
  1. +21 −10 tests.json
View
31 tests.json
@@ -310,67 +310,77 @@
"var" : "a"
}
}
-
},
"tags with Ruby-style attributes": {
"Ruby-style one attribute" : {
"haml" : "%p{:a => 'b'}",
- "html" : "<p a='b'></p>"
+ "html" : "<p a='b'></p>",
+ "optional" : true
},
"Ruby-style attributes hash with whitespace" : {
"haml" : "%p{ :a => 'b' }",
- "html" : "<p a='b'></p>"
+ "html" : "<p a='b'></p>",
+ "optional" : true
},
"Ruby-style interpolated attribute" : {
"haml" : "%p{:a =>\"#{var}\"}",
"html" : "<p a='value'></p>",
+ "optional" : true,
"locals" : {
"var" : "value"
}
},
"Ruby-style multiple attributes" : {
"haml" : "%p{ :a => 'b', 'c' => 'd' }",
- "html" : "<p a='b' c='d'></p>"
+ "html" : "<p a='b' c='d'></p>",
+ "optional" : true
},
"Ruby-style attributes separated with newlines" : {
"haml" : "%p{ :a => 'b',\n 'c' => 'd' }",
- "html" : "<p a='b' c='d'></p>"
+ "html" : "<p a='b' c='d'></p>",
+ "optional" : true
},
"Ruby-style 'class' as an attribute" : {
"haml" : "%p{:class => 'class1'}",
- "html" : "<p class='class1'></p>"
+ "html" : "<p class='class1'></p>",
+ "optional" : true
},
"Ruby-style tag with a CSS class and 'class' as an attribute" : {
"haml" : "%p.class2{:class => 'class1'}",
- "html" : "<p class='class1 class2'></p>"
+ "html" : "<p class='class1 class2'></p>",
+ "optional" : true
},
"Ruby-style tag with 'id' as an attribute" : {
"haml" : "%p{:id => '1'}",
- "html" : "<p id='1'></p>"
+ "html" : "<p id='1'></p>",
+ "optional" : true
},
"Ruby-style tag with a CSS id and 'id' as an attribute" : {
"haml" : "%p#id{:id => '1'}",
- "html" : "<p id='id_1'></p>"
+ "html" : "<p id='id_1'></p>",
+ "optional" : true
},
"Ruby-style tag with a CSS id and a numeric 'id' as an attribute" : {
"haml" : "%p#id{:id => 1}",
- "html" : "<p id='id_1'></p>"
+ "html" : "<p id='id_1'></p>",
+ "optional" : true
},
"Ruby-style tag with a variable attribute" : {
"haml" : "%p{:class => var}",
"html" : "<p class='hello'></p>",
+ "optional" : true,
"locals" : {
"var" : "hello"
}
@@ -379,6 +389,7 @@
"Ruby-style tag with a CSS class and 'class' as a variable attribute" : {
"haml" : ".hello{:class => var}",
"html" : "<div class='hello world'></div>",
+ "optional" : true,
"locals" : {
"var" : "world"
}

0 comments on commit 452ffc4

Please sign in to comment.