Skip to content

Commit

Permalink
adjust test files with div wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 10, 2023
1 parent f43facc commit 867e431
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 113 deletions.
224 changes: 134 additions & 90 deletions src/test/suite/fixtures/expected/issue_41.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,102 +8,146 @@ <h1>
</h1>
</div>
<div><h2>macro-info</h2></div>
<div class="info info-title">This is info title</div>
<div class="info info-body"><div>This is Info information.</div></div>
<div class="info info-title"></div>
<div class="info info-body">
<div>This is info without title information.</div>
</div>
<div class="info info-title-iconless">Info with title w/o icon</div>
<div class="info info-body"><div>This is Info information.</div></div>
<div class="info info-title-iconless"></div>
<div class="info info-body"><div>INFO: titleless and iconless</div></div>
<div class="info info-title-iconless">This is my title</div>
<div class="info info-body">
<div>This is <i>important</i> information.</div>
<div>
<div class="info info-title">This is info title</div>
<div class="info info-body"><div>This is Info information.</div></div>
</div>
<div>
<div class="info info-title"></div>
<div class="info info-body">
<div>This is info without title information.</div>
</div>
</div>
<div>
<div class="info info-title-iconless">Info with title w/o icon</div>
<div class="info info-body"><div>This is Info information.</div></div>
</div>
<div>
<div class="info info-title-iconless"></div>
<div class="info info-body"><div>INFO: titleless and iconless</div></div>
</div>
<div>
<div class="info info-title-iconless">This is my title</div>
<div class="info info-body">
<div>This is <i>important</i> information.</div>
</div>
</div>
<div><h2>macro-tip</h2></div>
<div class="tip tip-title">This is tip title</div>
<div class="tip tip-body"><div>This is Tip information.</div></div>
<div class="tip tip-title"></div>
<div class="tip tip-body">
<div>This is tip without title information.</div>
</div>
<div class="tip tip-title-iconless">Tip with title w/o icon</div>
<div class="tip tip-body"><div>This is Tip information.</div></div>
<div class="tip tip-title-iconless"></div>
<div class="tip tip-body"><div>TIP: titleless and iconless</div></div>
<div>
<div class="tip tip-title">This is tip title</div>
<div class="tip tip-body"><div>This is Tip information.</div></div>
</div>
<div>
<div class="tip tip-title"></div>
<div class="tip tip-body">
<div>This is tip without title information.</div>
</div>
</div>
<div>
<div class="tip tip-title-iconless">Tip with title w/o icon</div>
<div class="tip tip-body"><div>This is Tip information.</div></div>
</div>
<div>
<div class="tip tip-title-iconless"></div>
<div class="tip tip-body"><div>TIP: titleless and iconless</div></div>
</div>
<div><h2>macro-note</h2></div>
<div class="note note-title">This is note title</div>
<div class="note note-body"><div>This is note information.</div></div>
<div class="note note-title"></div>
<div class="note note-body">
<div>This is note without title information.</div>
</div>
<div class="note note-title-iconless">Note with title w/o icon</div>
<div class="note note-body"><div>This is note information.</div></div>
<div class="note note-title-iconless"></div>
<div class="note note-body"><div>NOTE: titleless and iconless</div></div>
<div>
<div class="note note-title">This is note title</div>
<div class="note note-body"><div>This is note information.</div></div>
</div>
<div>
<div class="note note-title"></div>
<div class="note note-body">
<div>This is note without title information.</div>
</div>
</div>
<div>
<div class="note note-title-iconless">Note with title w/o icon</div>
<div class="note note-body"><div>This is note information.</div></div>
</div>
<div>
<div class="note note-title-iconless"></div>
<div class="note note-body"><div>NOTE: titleless and iconless</div></div>
</div>
<div><h2>macro-warning</h2></div>
<div class="warning warning-title">This is warning title</div>
<div class="warning warning-body"><div>This is warning information.</div></div>
<div class="warning warning-title"></div>
<div class="warning warning-body">
<div>This is warning without title information.</div>
<div>
<div class="warning warning-title">This is warning title</div>
<div class="warning warning-body">
<div>This is warning information.</div>
</div>
</div>
<div class="warning warning-title-iconless">
This is warning title without icon
<div>
<div class="warning warning-title"></div>
<div class="warning warning-body">
<div>This is warning without title information.</div>
</div>
</div>
<div class="warning warning-body"><div>This is warning information.</div></div>
<div class="warning warning-title-iconless"></div>
<div class="warning warning-body">
<div>WARNING: titleless and iconless</div>
<div>
<div class="warning warning-title-iconless">
This is warning title without icon
</div>
<div class="warning warning-body">
<div>This is warning information.</div>
</div>
</div>
<div>
<div class="warning warning-title-iconless"></div>
<div class="warning warning-body">
<div>WARNING: titleless and iconless</div>
</div>
</div>
<div><h2>formatted panel</h2></div>
<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;
"
>
<div>A formatted panel</div>
</div>
<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"
>
<div>A formatted panel</div>
</div>
<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">
<div>A formatted panel</div>
<div>
<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;
"
>
<div>A formatted panel</div>
</div>
</div>
<div>
<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"
>
<div>A formatted panel</div>
</div>
</div>
<div>
<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">
<div>A formatted panel</div>
</div>
</div>
46 changes: 26 additions & 20 deletions src/test/suite/fixtures/expected/issues.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,26 +121,32 @@ <h1><strong>Issues</strong></h1>
<a href="https://github.com/denco/vscode-confluence-markup/issues/22">#22</a>
panel support
</div>
<div class="panel panel-body"><div>Some text</div></div>
<div class="panel panel-title">My Title</div>
<div class="panel panel-body"><div>Some text with a title</div></div>
<div
class="panel panel-title"
style="
border-style: dashed;
border-bottom: none;
border-color: #ccc;
background-color: #f7d6c1;
"
>
My Title
</div>
<div
class="panel panel-body"
style="border-style: dashed; border-color: #ccc; background-color: #ffffce"
>
<div>a block of text surrounded with a <strong>panel</strong></div>
<div>yet <i>another</i> line</div>
<div>
<div class="panel panel-body"><div>Some text</div></div>
</div>
<div>
<div class="panel panel-title">My Title</div>
<div class="panel panel-body"><div>Some text with a title</div></div>
</div>
<div>
<div
class="panel panel-title"
style="
border-style: dashed;
border-bottom: none;
border-color: #ccc;
background-color: #f7d6c1;
"
>
My Title
</div>
<div
class="panel panel-body"
style="border-style: dashed; border-color: #ccc; background-color: #ffffce"
>
<div>a block of text surrounded with a <strong>panel</strong></div>
<div>yet <i>another</i> line</div>
</div>
</div>
<div>
<a href="https://github.com/denco/vscode-confluence-markup/issues/24">#24</a>:
Expand Down
10 changes: 7 additions & 3 deletions src/test/suite/fixtures/expected/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h2><strong>code:</strong></h2>
</div>
<div class="code-block">
<span class="code-title">test</span>
<pre><code style='font-family: Menlo, Monaco, Consolas, monospace'>&lt;test>
<pre><code style='font-family: Menlo, Monaco, Consolas, monospace'>&lt;test>
&lt;test1 />
&lt;/test>
</code></pre>
Expand All @@ -216,7 +216,9 @@ <h2><strong>code:</strong></h2>
echo very long command line with a lot of sings to check word wrap and how it looks like && echo much more elements to print
</code></pre>
</div>
<pre><code style='font-family: Menlo, Monaco, Consolas, monospace'>code oneline</code></pre>
<div class="code-block">
<pre><code style='font-family: Menlo, Monaco, Consolas, monospace'>code oneline</code></pre>
</div>
<div><hr /></div>
<div>
<h2><strong>noformat:</strong></h2>
Expand All @@ -226,4 +228,6 @@ <h2><strong>noformat:</strong></h2>
&lt;/xml>
</code></pre>
</div>
<pre><code style='font-family: Menlo, Monaco, Consolas, monospace'>noformat &lt;tag>&lt;/tag> oneline</code></pre>
<div class="code-block">
<pre><code style='font-family: Menlo, Monaco, Consolas, monospace'>noformat &lt;tag>&lt;/tag> oneline</code></pre>
</div>

0 comments on commit 867e431

Please sign in to comment.