Skip to content

Commit 6f2f73e

Browse files
committed
add tests for issue #41
1 parent d43be3c commit 6f2f73e

File tree

3 files changed

+337
-0
lines changed

3 files changed

+337
-0
lines changed
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
<p>
2+
<h1>Issue <a href='https://github.com/denco/vscode-confluence-markup/issues/41'>#41</a> - macros: info,tip,note and warning</h1>
3+
</p>
4+
<p>
5+
<h2>macro-info</h2>
6+
</p>
7+
<p>
8+
<div class="info info-title">This is info title</div>
9+
<div class="info info-body">
10+
</p>
11+
<p>This is Info information.</p>
12+
<p>
13+
</div>
14+
</p>
15+
<p>
16+
<div class="info info-title"></div>
17+
<div class="info info-body">
18+
</p>
19+
<p>This is info without title information.</p>
20+
<p>
21+
</div>
22+
</p>
23+
<p>
24+
<div class="info info-title-iconless">Info with title w/o icon</div>
25+
<div class="info info-body">
26+
</p>
27+
<p>This is Info information.</p>
28+
<p>
29+
</div>
30+
</p>
31+
<p>
32+
<div class="info info-title-iconless"></div>
33+
<div class="info info-body">
34+
</p>
35+
<p>INFO: titleless and iconless</p>
36+
<p>
37+
</div>
38+
</p>
39+
<p>
40+
<div class="info info-title-iconless">This is my title</div>
41+
<div class="info info-body">
42+
</p>
43+
<p>This is <i>important</i> information.</p>
44+
<p>
45+
</div>
46+
</p>
47+
<p>
48+
<h2>macro-tip</h2>
49+
</p>
50+
<p>
51+
<div class="tip tip-title">This is tip title</div>
52+
<div class="tip tip-body">
53+
</p>
54+
<p>This is Tip information.</p>
55+
<p>
56+
</div>
57+
</p>
58+
<p>
59+
<div class="tip tip-title"></div>
60+
<div class="tip tip-body">
61+
</p>
62+
<p>This is tip without title information.</p>
63+
<p>
64+
</div>
65+
</p>
66+
<p>
67+
<div class="tip tip-title-iconless">Tip with title w/o icon</div>
68+
<div class="tip tip-body">
69+
</p>
70+
<p>This is Tip information.</p>
71+
<p>
72+
</div>
73+
</p>
74+
<p>
75+
<div class="tip tip-title-iconless"></div>
76+
<div class="tip tip-body">
77+
</p>
78+
<p>TIP: titleless and iconless</p>
79+
<p>
80+
</div>
81+
</p>
82+
<p>
83+
<h2>macro-note</h2>
84+
</p>
85+
<p>
86+
<div class="note note-title">This is note title</div>
87+
<div class="note note-body">
88+
</p>
89+
<p>This is note information.</p>
90+
<p>
91+
</div>
92+
</p>
93+
<p>
94+
<div class="note note-title"></div>
95+
<div class="note note-body">
96+
</p>
97+
<p>This is note without title information.</p>
98+
<p>
99+
</div>
100+
</p>
101+
<p>
102+
<div class="note note-title-iconless">Note with title w/o icon</div>
103+
<div class="note note-body">
104+
</p>
105+
<p>This is note information.</p>
106+
<p>
107+
</div>
108+
</p>
109+
<p>
110+
<div class="note note-title-iconless"></div>
111+
<div class="note note-body">
112+
</p>
113+
<p>NOTE: titleless and iconless</p>
114+
<p>
115+
</div>
116+
</p>
117+
<p>
118+
<h2>macro-warning</h2>
119+
</p>
120+
<p>
121+
<div class="warning warning-title">This is warning title</div>
122+
<div class="warning warning-body">
123+
</p>
124+
<p>This is warning information.</p>
125+
<p>
126+
</div>
127+
</p>
128+
<p>
129+
<div class="warning warning-title"></div>
130+
<div class="warning warning-body">
131+
</p>
132+
<p>This is warning without title information.</p>
133+
<p>
134+
</div>
135+
</p>
136+
<p>
137+
<div class="warning warning-title-iconless">This is warning title without icon</div>
138+
<div class="warning warning-body">
139+
</p>
140+
<p>This is warning information.</p>
141+
<p>
142+
</div>
143+
</p>
144+
<p>
145+
<div class="warning warning-title-iconless"></div>
146+
<div class="warning warning-body">
147+
</p>
148+
<p>WARNING: titleless and iconless</p>
149+
<p>
150+
</div>
151+
</p>
152+
<p>
153+
<h2>formatted panel</h2>
154+
</p>
155+
<p>
156+
<div class="panel panel-title" style='border-style: dashed; border-bottom:none; border-color: YellowGreen; background-color: #00a400;'>My title
157+
</div>
158+
<div class="panel panel-body" style='border-style: dashed; border-color: YellowGreen; background-color: #72bc72;'>
159+
</p>
160+
<p>A formatted panel</p>
161+
<p>
162+
</div>
163+
</p>
164+
<p>
165+
<div class="panel panel-title" style='border-style: solid; border-bottom:none; border-color: Violet; background-color: #00a400;'>My title</div>
166+
<div class="panel panel-body" style='border-style: solid; border-color: Violet; background-color: #72bc72;'>
167+
</p>
168+
<p>A formatted panel</p>
169+
<p>
170+
</div>
171+
</p>
172+
<p>
173+
<div class="panel panel-title" style='border-style: dotted; border-bottom:none; border-color: red; '>My title</div>
174+
<div class="panel panel-body" style='border-style: dotted; border-color: red; '>
175+
</p>
176+
<p>A formatted panel</p>
177+
<p>
178+
</div>
179+
</p>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
h1. Issue [#41|https://github.com/denco/vscode-confluence-markup/issues/41] - macros: info,tip,note and warning
2+
3+
h2. macro-info
4+
5+
{info:title=This is info title}
6+
This is Info information.
7+
{info}
8+
{info}
9+
This is info without title information.
10+
{info}
11+
{info:title=Info with title w/o icon|icon=false}
12+
This is Info information.
13+
{info}
14+
{info:icon=false}
15+
INFO: titleless and iconless
16+
{info}
17+
18+
{info:title=This is my title|icon=false}
19+
This is _important_ information.
20+
{info}
21+
22+
h2. macro-tip
23+
24+
{tip:title=This is tip title}
25+
This is Tip information.
26+
{tip}
27+
{tip}
28+
This is tip without title information.
29+
{tip}
30+
{tip:title=Tip with title w/o icon|icon=false}
31+
This is Tip information.
32+
{tip}
33+
{tip:icon=false}
34+
TIP: titleless and iconless
35+
{tip}
36+
37+
h2. macro-note
38+
39+
{note:title=This is note title}
40+
This is note information.
41+
{note}
42+
{note}
43+
This is note without title information.
44+
{note}
45+
{note:title=Note with title w/o icon|icon=false}
46+
This is note information.
47+
{note}
48+
{note:icon=false}
49+
NOTE: titleless and iconless
50+
{note}
51+
52+
h2. macro-warning
53+
54+
{warning:title=This is warning title}
55+
This is warning information.
56+
{warning}
57+
{warning}
58+
This is warning without title information.
59+
{warning}
60+
{warning:title=This is warning title without icon|icon=false}
61+
This is warning information.
62+
{warning}
63+
{warning:icon=false}
64+
WARNING: titleless and iconless
65+
{warning}
66+
67+
h2. formatted panel
68+
69+
{panel:title=My title|borderStyle=dashed|borderColor=YellowGreen|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
70+
A formatted panel
71+
{panel}
72+
73+
{panel:title=My title|borderStyle=solid|borderColor=Violet|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
74+
A formatted panel
75+
{panel}
76+
77+
{panel:title=My title|borderStyle=dotted|borderColor=red}
78+
A formatted panel
79+
{panel}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
h1. Issue [#41|https://github.com/denco/vscode-confluence-markup/issues/41] - macros: info,tip,note and warning
2+
3+
h2. macro-info
4+
5+
{info:title=This is info title}
6+
This is Info information.
7+
{info}
8+
{info}
9+
This is info without title information.
10+
{info}
11+
{info:title=Info with title w/o icon|icon=false}
12+
This is Info information.
13+
{info}
14+
{info:icon=false}
15+
INFO: titleless and iconless
16+
{info}
17+
18+
{info:title=This is my title|icon=false}
19+
This is _important_ information.
20+
{info}
21+
22+
h2. macro-tip
23+
24+
{tip:title=This is tip title}
25+
This is Tip information.
26+
{tip}
27+
{tip}
28+
This is tip without title information.
29+
{tip}
30+
{tip:title=Tip with title w/o icon|icon=false}
31+
This is Tip information.
32+
{tip}
33+
{tip:icon=false}
34+
TIP: titleless and iconless
35+
{tip}
36+
37+
h2. macro-note
38+
39+
{note:title=This is note title}
40+
This is note information.
41+
{note}
42+
{note}
43+
This is note without title information.
44+
{note}
45+
{note:title=Note with title w/o icon|icon=false}
46+
This is note information.
47+
{note}
48+
{note:icon=false}
49+
NOTE: titleless and iconless
50+
{note}
51+
52+
h2. macro-warning
53+
54+
{warning:title=This is warning title}
55+
This is warning information.
56+
{warning}
57+
{warning}
58+
This is warning without title information.
59+
{warning}
60+
{warning:title=This is warning title without icon|icon=false}
61+
This is warning information.
62+
{warning}
63+
{warning:icon=false}
64+
WARNING: titleless and iconless
65+
{warning}
66+
67+
h2. formatted panel
68+
69+
{panel:title=My title|borderStyle=dashed|borderColor=YellowGreen|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
70+
A formatted panel
71+
{panel}
72+
73+
{panel:title=My title|borderStyle=solid|borderColor=Violet|titleBGColor=#00a400|titleColor=white|bgColor=#72bc72}
74+
A formatted panel
75+
{panel}
76+
77+
{panel:title=My title|borderStyle=dotted|borderColor=red}
78+
A formatted panel
79+
{panel}

0 commit comments

Comments
 (0)