From b000a4631efb48908e3d17451b6a5f75550095e0 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Tue, 13 Oct 2009 13:34:09 -0700 Subject: [PATCH] [Sass] Add a test for properties with content and nested properties. --- test/sass/engine_test.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/sass/engine_test.rb b/test/sass/engine_test.rb index 561aeca0..0555641f 100755 --- a/test/sass/engine_test.rb +++ b/test/sass/engine_test.rb @@ -27,7 +27,7 @@ class SassEngineTest < Test::Unit::TestCase "a\n b: c;" => 'Invalid property: "b: c;" (no ";" required at end-of-line).', "a\n b : c" => 'Invalid property: "b : c".', "a\n b=c: d" => 'Invalid property: "b=c: d".', - ":a" => 'Properties aren\'t allowed at the root of a document.', + "a: b" => 'Properties aren\'t allowed at the root of a document.', "!" => 'Invalid variable: "!".', "!a" => 'Invalid variable: "!a".', "! a" => 'Invalid variable: "! a".', @@ -463,6 +463,18 @@ SASS assert_equal("foo {\n a: b;\n c: d;\n e: f; }\n", render("foo\r a: b\r\n c: d\n\r e: f")) end + def test_property_with_content_and_nested_props + assert_equal(<