Skip to content

Commit

Permalink
add tests for issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 3, 2023
1 parent d43be3c commit 6f2f73e
Show file tree
Hide file tree
Showing 3 changed files with 337 additions and 0 deletions.
179 changes: 179 additions & 0 deletions src/test/suite/fixtures/expected/issue_41.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
<p>
<h1>Issue <a href='https://github.com/denco/vscode-confluence-markup/issues/41'>#41</a> - macros: info,tip,note and warning</h1>
</p>
<p>
<h2>macro-info</h2>
</p>
<p>
<div class="info info-title">This is info title</div>
<div class="info info-body">
</p>
<p>This is Info information.</p>
<p>
</div>
</p>
<p>
<div class="info info-title"></div>
<div class="info info-body">
</p>
<p>This is info without title information.</p>
<p>
</div>
</p>
<p>
<div class="info info-title-iconless">Info with title w/o icon</div>
<div class="info info-body">
</p>
<p>This is Info information.</p>
<p>
</div>
</p>
<p>
<div class="info info-title-iconless"></div>
<div class="info info-body">
</p>
<p>INFO: titleless and iconless</p>
<p>
</div>
</p>
<p>
<div class="info info-title-iconless">This is my title</div>
<div class="info info-body">
</p>
<p>This is <i>important</i> information.</p>
<p>
</div>
</p>
<p>
<h2>macro-tip</h2>
</p>
<p>
<div class="tip tip-title">This is tip title</div>
<div class="tip tip-body">
</p>
<p>This is Tip information.</p>
<p>
</div>
</p>
<p>
<div class="tip tip-title"></div>
<div class="tip tip-body">
</p>
<p>This is tip without title information.</p>
<p>
</div>
</p>
<p>
<div class="tip tip-title-iconless">Tip with title w/o icon</div>
<div class="tip tip-body">
</p>
<p>This is Tip information.</p>
<p>
</div>
</p>
<p>
<div class="tip tip-title-iconless"></div>
<div class="tip tip-body">
</p>
<p>TIP: titleless and iconless</p>
<p>
</div>
</p>
<p>
<h2>macro-note</h2>
</p>
<p>
<div class="note note-title">This is note title</div>
<div class="note note-body">
</p>
<p>This is note information.</p>
<p>
</div>
</p>
<p>
<div class="note note-title"></div>
<div class="note note-body">
</p>
<p>This is note without title information.</p>
<p>
</div>
</p>
<p>
<div class="note note-title-iconless">Note with title w/o icon</div>
<div class="note note-body">
</p>
<p>This is note information.</p>
<p>
</div>
</p>
<p>
<div class="note note-title-iconless"></div>
<div class="note note-body">
</p>
<p>NOTE: titleless and iconless</p>
<p>
</div>
</p>
<p>
<h2>macro-warning</h2>
</p>
<p>
<div class="warning warning-title">This is warning title</div>
<div class="warning warning-body">
</p>
<p>This is warning information.</p>
<p>
</div>
</p>
<p>
<div class="warning warning-title"></div>
<div class="warning warning-body">
</p>
<p>This is warning without title information.</p>
<p>
</div>
</p>
<p>
<div class="warning warning-title-iconless">This is warning title without icon</div>
<div class="warning warning-body">
</p>
<p>This is warning information.</p>
<p>
</div>
</p>
<p>
<div class="warning warning-title-iconless"></div>
<div class="warning warning-body">
</p>
<p>WARNING: titleless and iconless</p>
<p>
</div>
</p>
<p>
<h2>formatted panel</h2>
</p>
<p>
<div class="panel panel-title" style='border-style: dashed; border-bottom:none; border-color: YellowGreen; background-color: #00a400;'>My title
</div>
<div class="panel panel-body" style='border-style: dashed; border-color: YellowGreen; background-color: #72bc72;'>
</p>
<p>A formatted panel</p>
<p>
</div>
</p>
<p>
<div class="panel panel-title" style='border-style: solid; border-bottom:none; border-color: Violet; background-color: #00a400;'>My title</div>
<div class="panel panel-body" style='border-style: solid; border-color: Violet; background-color: #72bc72;'>
</p>
<p>A formatted panel</p>
<p>
</div>
</p>
<p>
<div class="panel panel-title" style='border-style: dotted; border-bottom:none; border-color: red; '>My title</div>
<div class="panel panel-body" style='border-style: dotted; border-color: red; '>
</p>
<p>A formatted panel</p>
<p>
</div>
</p>
79 changes: 79 additions & 0 deletions src/test/suite/fixtures/testfiles/nix/issue_41.confluence
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
h1. Issue [#41|https://github.com/denco/vscode-confluence-markup/issues/41] - macros: info,tip,note and warning

h2. macro-info

{info:title=This is info title}
This is Info information.
{info}
{info}
This is info without title information.
{info}
{info:title=Info with title w/o icon|icon=false}
This is Info information.
{info}
{info:icon=false}
INFO: titleless and iconless
{info}

{info:title=This is my title|icon=false}
This is _important_ information.
{info}

h2. macro-tip

{tip:title=This is tip title}
This is Tip information.
{tip}
{tip}
This is tip without title information.
{tip}
{tip:title=Tip with title w/o icon|icon=false}
This is Tip information.
{tip}
{tip:icon=false}
TIP: titleless and iconless
{tip}

h2. macro-note

{note:title=This is note title}
This is note information.
{note}
{note}
This is note without title information.
{note}
{note:title=Note with title w/o icon|icon=false}
This is note information.
{note}
{note:icon=false}
NOTE: titleless and iconless
{note}

h2. macro-warning

{warning:title=This is warning title}
This is warning information.
{warning}
{warning}
This is warning without title information.
{warning}
{warning:title=This is warning title without icon|icon=false}
This is warning information.
{warning}
{warning:icon=false}
WARNING: titleless and iconless
{warning}

h2. formatted panel

{panel:title=My title|borderStyle=dashed|borderColor=YellowGreen|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
A formatted panel
{panel}

{panel:title=My title|borderStyle=solid|borderColor=Violet|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
A formatted panel
{panel}

{panel:title=My title|borderStyle=dotted|borderColor=red}
A formatted panel
{panel}
79 changes: 79 additions & 0 deletions src/test/suite/fixtures/testfiles/win/issue_41.confluence
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
h1. Issue [#41|https://github.com/denco/vscode-confluence-markup/issues/41] - macros: info,tip,note and warning

h2. macro-info

{info:title=This is info title}
This is Info information.
{info}
{info}
This is info without title information.
{info}
{info:title=Info with title w/o icon|icon=false}
This is Info information.
{info}
{info:icon=false}
INFO: titleless and iconless
{info}

{info:title=This is my title|icon=false}
This is _important_ information.
{info}

h2. macro-tip

{tip:title=This is tip title}
This is Tip information.
{tip}
{tip}
This is tip without title information.
{tip}
{tip:title=Tip with title w/o icon|icon=false}
This is Tip information.
{tip}
{tip:icon=false}
TIP: titleless and iconless
{tip}

h2. macro-note

{note:title=This is note title}
This is note information.
{note}
{note}
This is note without title information.
{note}
{note:title=Note with title w/o icon|icon=false}
This is note information.
{note}
{note:icon=false}
NOTE: titleless and iconless
{note}

h2. macro-warning

{warning:title=This is warning title}
This is warning information.
{warning}
{warning}
This is warning without title information.
{warning}
{warning:title=This is warning title without icon|icon=false}
This is warning information.
{warning}
{warning:icon=false}
WARNING: titleless and iconless
{warning}

h2. formatted panel

{panel:title=My title|borderStyle=dashed|borderColor=YellowGreen|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
A formatted panel
{panel}

{panel:title=My title|borderStyle=solid|borderColor=Violet|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
A formatted panel
{panel}

{panel:title=My title|borderStyle=dotted|borderColor=red}
A formatted panel
{panel}

0 comments on commit 6f2f73e

Please sign in to comment.