Updated test. Need to improve on Internet line endings.
This commit is contained in:
parent
ffeeff423b
commit
72098ee5b9
@ -28,7 +28,7 @@ BreaPageTest >> createHTMLTemplateFile [
|
||||
<p>
|
||||
{{#unhide}} You should not see me. {{/unhide}}
|
||||
</p>
|
||||
{{ contents }}
|
||||
{{{ contents }}}
|
||||
</body>
|
||||
</html>'.
|
||||
|
||||
@ -86,12 +86,14 @@ BreaPageTest >> htmlOutput [
|
||||
<body>
|
||||
<h1>This is a test</h1>
|
||||
<p>
|
||||
You should see me.
|
||||
You should see me.
|
||||
</p>
|
||||
<p>
|
||||
</p>',
|
||||
self htmlBodyContents,
|
||||
'</body>
|
||||
|
||||
</p>
|
||||
', self htmlBodyContents,
|
||||
'
|
||||
</body>
|
||||
</html>'
|
||||
]
|
||||
|
||||
@ -149,6 +151,19 @@ BreaPageTest >> testMarkdownContentExtraction [
|
||||
self assert: page contents equals: self markdownTestFile contents.
|
||||
]
|
||||
|
||||
{ #category : #tests }
|
||||
BreaPageTest >> testMarkdownHTMLExport [
|
||||
|
||||
| page |
|
||||
page := BreaPage new.
|
||||
page
|
||||
shortName: 'test';
|
||||
folder: FileLocator temp;
|
||||
template: 'template.mus.html';
|
||||
bodyTag: 'contents'.
|
||||
self assert: (page exportAsHTML contents) equals: self htmlOutput.
|
||||
]
|
||||
|
||||
{ #category : #tests }
|
||||
BreaPageTest >> testMarkdownMetadataExtraction [
|
||||
|
||||
|
@ -82,7 +82,6 @@ BreaPage >> exportAsHTML [
|
||||
actionsArray := actionsArray copyWith: [ self populateBodyAs: self bodyTag ] future ].
|
||||
allActions := TKTFuture all: actionsArray.
|
||||
semaphore := Semaphore new.
|
||||
"self halt."
|
||||
allActions onSuccessDo: [ :values |
|
||||
result := values last.
|
||||
semaphore signal.
|
||||
|
Loading…
Reference in New Issue
Block a user