test/sass/engine_test.rb in sass-3.2.0.alpha.59 vs test/sass/engine_test.rb in sass-3.2.0.alpha.60

- old
+ new

@@ -1,9 +1,9 @@ #!/usr/bin/env ruby # -*- coding: utf-8 -*- -require File.dirname(__FILE__) + '/../test_helper' -require File.dirname(__FILE__) + '/test_helper' +require 'test_helper' +require 'sass/test_helper' require 'sass/engine' require 'stringio' require 'mock_importer' require 'pathname' @@ -1026,27 +1026,10 @@ foo a: b SASS end - def test_debug_info_in_keyframes - assert_equal(<<CSS, render(<<SASS, :debug_info => true)) -@-webkit-keyframes warm { - from { - color: black; } - - to { - color: red; } } -CSS -@-webkit-keyframes warm - from - color: black - to - color: red -SASS - end - def test_empty_first_line assert_equal("#a {\n b: c; }\n", render("#a\n\n b: c")) end def test_escaped_rule @@ -2227,31 +2210,10 @@ SASS end # Regression tests - def test_variable_in_media_in_mixin - assert_equal <<CSS, render(<<SASS) -@media screen and (min-width: 10px) { - body { - background: red; } } -@media screen and (min-width: 20px) { - body { - background: blue; } } -CSS -@mixin respond-to($width) - @media screen and (min-width: $width) - @content - -body - @include respond-to(10px) - background: red - @include respond-to(20px) - background: blue -SASS - end - def test_tricky_mixin_loop_exception render <<SASS @mixin foo($a) @if $a @include foo(false) @@ -2574,18 +2536,9 @@ SASS assert_equal <<CSS, render(<<SASS) /* \#{foo} */ CSS /*! \\\#{foo} -SASS - end - - def test_selector_compression - assert_equal <<CSS, render(<<SASS, :style => :compressed) -a>b,c+d,:-moz-any(e,f,g){h:i} -CSS -a > b, c + d, :-moz-any(e, f, g) - h: i SASS end # Encodings