spec/convertions_spec.rb in beautiful-css-0.0.10 vs spec/convertions_spec.rb in beautiful-css-0.1.01

- old
+ new

@@ -161,13 +161,25 @@ CLEAN assert_renders dirty, clean end + it 'should work with base64 encoded images 2' do + dirty = <<DIRTY +body +{background-image:url( "data:image/png;base64,%2F9j%2F4AAQSkZJR8QDn9Ltz%2F%2F2Q%3D%3D"); } +DIRTY + clean = <<CLEAN +body +{ background-image:url("data:image/png;base64,%2F9j%2F4AAQSkZJR8QDn9Ltz%2F%2F2Q%3D%3D") } +CLEAN + assert_renders dirty, clean + end + it 'should ignore case for style' do dirty = <<DIRTY a { background:green; } a @@ -179,9 +191,37 @@ CLEAN assert_renders dirty, clean end + + +# it 'should remove unneeded styles' do +# dirty = <<DIRTY +#td { color: green; } +#.unneeded_class { td{ color:green; } } +#DIRTY +# clean = <<CLEAN +#td +#{ color:green } +#CLEAN +# assert_renders dirty, clean +# end + + + + + it 'should handle IE filter tags' do + dirty = <<DIRTY +a +{ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0b7a1', endColorstr='#bf6e4e',GradientType=0 ); } +DIRTY + clean = <<CLEAN +a +{ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0b7a1', endColorstr='#bf6e4e',GradientType=0 ) } +CLEAN + assert_renders dirty, clean + end