test/sass/engine_test.rb in sass-3.3.0.alpha.129 vs test/sass/engine_test.rb in sass-3.3.0.alpha.132

- old
+ new

@@ -20,14 +20,10 @@ def get_a_variable(name) environment.var(name.value) || Sass::Script::String.new("undefined") end end -module Sass::Script::Functions - include Sass::Script::Functions::UserFunctions -end - class SassEngineTest < Test::Unit::TestCase FAKE_FILE_NAME = __FILE__.gsub(/rb$/,"sass") # A map of erroneous Sass documents to the error messages they should produce. # The error messages may be arrays; # if so, the second element should be the line number that should be reported for the error. @@ -522,25 +518,10 @@ assert_hash_has(err.sass_backtrace[0], :mixin => "baz", :line => 8) assert_hash_has(err.sass_backtrace[1], :mixin => "bar", :line => 5) assert_hash_has(err.sass_backtrace[2], :mixin => "foo", :line => 2) end - def test_mixin_loop_with_content - render <<SASS -=foo - @content -=bar - +foo - +bar -+bar -SASS - assert(false, "Exception not raised") - rescue Sass::SyntaxError => err - assert_equal("An @include loop has been found: bar includes itself", err.message) - assert_hash_has(err.sass_backtrace[0], :mixin => "@content", :line => 5) - end - def test_basic_import_loop_exception import = filename_for_test importer = MockImporter.new importer.add_import(import, "@import '#{import}'") @@ -2432,27 +2413,9 @@ a: b SASS end # Regression tests - - def test_parent_mixin_in_content_nested - assert_equal(<<CSS, render(<<SASS)) -a { - b: c; } -CSS -=foo - @content - -=bar - +foo - +foo - a - b: c - -+bar -SASS - end def test_supports_bubbles assert_equal <<CSS, render(<<SASS) parent { background: orange; }