Skip to content

Commit

Permalink
add tests for correctly formed closing tags on Rapid fallbacks (see #32
Browse files Browse the repository at this point in the history
… for details)
  • Loading branch information
al2o3cr committed Dec 28, 2011
1 parent c7ea9eb commit 268602a
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions dryml/features/static_tags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,59 @@ Feature: Static tags render correctly
</div>
"""

Scenario: define tags that are used in Rapid
Given a file named "static_tag.dryml" with:
"""
<html lang="en">
<head>
<link rel="stylesheet" href="foo" />
</head>
<body>
<header>
<a href="something" target="_blank">Link text</a>
</header>
<section class="content">
<table width="100%">
<tr>
<td>FOO</td>
<td>BAR</td>
</tr>
</table>
</section>
<footer>
<form action="wut">
<input type="text" name="some_field" />
<submit value="Submit" />
</form>
</footer>
</body>
</html>
"""
When I render "static_tag.dryml"
Then the output DOM should be:
"""
<html lang="en">
<head>
<link rel="stylesheet" href="foo" />
</head>
<body>
<header>
<a href="something" target="_blank">Link text</a>
</header>
<section class="content">
<table width="100%">
<tr>
<td>FOO</td>
<td>BAR</td>
</tr>
</table>
</section>
<footer>
<form action="wut">
<input type="text" name="some_field" />
<submit value="Submit" />
</form>
</footer>
</body>
</html>
"""

0 comments on commit 268602a

Please sign in to comment.