Move parser tests file to normal location and add a styled one

Bug: T188527
Change-Id: Ib5023c7656e7f27ba58a99da3c2659e18674ac5a
This commit is contained in:
Jayprakash12345 2018-02-28 17:24:04 +00:00 committed by Jforrester
parent 9ef98cba2d
commit 2ad483d747
2 changed files with 20 additions and 3 deletions

View file

@ -22,8 +22,5 @@
"AutoloadClasses": {
"Poem": "includes/Poem.php"
},
"ParserTestFiles": [
"poemParserTests.txt"
],
"manifest_version": 1
}

View file

@ -140,3 +140,23 @@ test<br />
</div>
!! end
!! test
Basic <poem> usage with style
!! input
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;">
A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.
</poem>
!! result
<div style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;" class="poem">
<p>A stately pleasure-dome decree:<br />
Where Alph, the sacred river, ran<br />
Through caverns measureless to man<br />
Down to a sunless sea.
</p>
</div>
!! end