Skip to content

Commit

Permalink
Add test cases for multiline attributes
Browse files Browse the repository at this point in the history
See #1800.
  • Loading branch information
TimothyGu committed Aug 19, 2015
1 parent f61c357 commit 3c55dc2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cases/attrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@
<input pattern="\S+"/>
<foo terse="true"></foo>
<foo date="1970-01-01T00:00:00.000Z"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<foo abc="abc" def="def"></foo>
<div foo="bar" bar="<baz>"></div>
13 changes: 13 additions & 0 deletions test/cases/attrs.jade
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ input(pattern='\\S+')
foo(terse="true")
foo(date=new Date(0))

foo(abc
,def)
foo(abc,
def)
foo(abc,
def)
foo(abc
,def)
foo(abc
def)
foo(abc
def)

- var attrs = {foo: 'bar', bar: '<baz>'}

div&attributes(attrs)

0 comments on commit 3c55dc2

Please sign in to comment.