Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test for "~" operator

  • Loading branch information...
commit f9683abe5d5451f53ca117ecf47537c2cdb61123 1 parent 452ffc4
@norman norman authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 tests.json
View
12 tests.json
@@ -546,14 +546,20 @@
}
},
- "automatic whitespace preservation" : {
+ "whitespace preservation" : {
- "with a textarea tag" : {
+ "following the '~' operator" : {
+ "haml" : "~ \"Foo\\n<pre>Bar\\nBaz</pre>\"",
+ "html" : "Foo\n<pre>Bar&#x000A;Baz</pre>",
+ "optional" : true
+ },
+
+ "inside a textarea tag" : {
"haml" : "%textarea\n hello\n hello",
"html" : "<textarea>hello\nhello</textarea>"
},
- "with a pre tag" : {
+ "inside a pre tag" : {
"haml" : "%pre\n hello\n hello",
"html" : "<pre>hello\nhello</pre>"
}
Please sign in to comment.
Something went wrong with that request. Please try again.