Skip to content

Commit

Permalink
adjust expected files with div wrap for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 10, 2023
1 parent eff15a4 commit 8774d08
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 135 deletions.
76 changes: 40 additions & 36 deletions src/test/suite/fixtures/expected/issues.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ <h1><strong>Issues</strong></h1>
Table without heading
</div>
<div><h4>Table without heading</h4></div>
<table>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>simple table</td>
<td>two</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>simple table</td>
<td>two</td>
</tr>
</tbody>
</table>
</div>
<div>
<a href="https://github.com/denco/vscode-confluence-markup/issues/6">#6</a>:
Intenting
Expand Down Expand Up @@ -192,30 +194,32 @@ <h1><strong>Issues</strong></h1>
<a href="https://github.com/denco/vscode-confluence-markup/issues/38">#38</a>
Preview is not working using links inside a table
</div>
<table>
<tbody>
<tr>
<th>heading 1</th>
<th>heading 2</th>
<th>heading 3</th>
</tr>
<tr>
<td>cell A1</td>
<td>cell A2</td>
<td>cell A3</td>
</tr>
<tr>
<td>cell B1</td>
<td>cell B2</td>
<td>cell B3</td>
</tr>
<tr>
<td><a href="www.example.com">example</a></td>
<td><a href="www.google.com">google</a></td>
<td><a href="https://code.visualstudio.com/">vscode</a></td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<th>heading 1</th>
<th>heading 2</th>
<th>heading 3</th>
</tr>
<tr>
<td>cell A1</td>
<td>cell A2</td>
<td>cell A3</td>
</tr>
<tr>
<td>cell B1</td>
<td>cell B2</td>
<td>cell B3</td>
</tr>
<tr>
<td><a href="www.example.com">example</a></td>
<td><a href="www.google.com">google</a></td>
<td><a href="https://code.visualstudio.com/">vscode</a></td>
</tr>
</tbody>
</table>
</div>
<div>
<a href="https://github.com/denco/vscode-confluence-markup/issues/39">#39</a>
Local image preview
Expand Down
170 changes: 90 additions & 80 deletions src/test/suite/fixtures/expected/scoped/tables.html
Original file line number Diff line number Diff line change
@@ -1,86 +1,96 @@
<div><h1>Tables</h1></div>
<div><h2>Column heading</h2></div>
<table>
<tbody>
<tr>
<th>header c1</th>
<th>header c2</th>
</tr>
<tr>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<th>header c1</th>
<th>header c2</th>
</tr>
<tr>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
</tbody>
</table>
</div>
<div><h2>Row heading</h2></div>
<table>
<tbody>
<tr>
<th>header r1</th>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<th>header r2</th>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
<tr>
<th>header r3</th>
<td>data 3.1</td>
<td>data 3.2</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<th>header r1</th>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<th>header r2</th>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
<tr>
<th>header r3</th>
<td>data 3.1</td>
<td>data 3.2</td>
</tr>
</tbody>
</table>
</div>
<div><h2>Column and row heading</h2></div>
<table>
<tbody>
<tr>
<th></th>
<th>header c1</th>
<th>header c2</th>
</tr>
<tr>
<th>header r1</th>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<th>header r2</th>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<th></th>
<th>header c1</th>
<th>header c2</th>
</tr>
<tr>
<th>header r1</th>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<th>header r2</th>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
</tbody>
</table>
</div>
<div><h2>Without heading</h2></div>
<table>
<tbody>
<tr>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<td>data 1.1</td>
<td>data 1.2</td>
</tr>
<tr>
<td>data 2.1</td>
<td>data 2.2</td>
</tr>
</tbody>
</table>
</div>
<div><h2>Table with nested macros (not supported yet)</h2></div>
<table>
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
<tr>
<td>
<strong> Item 1<br /></strong> Item 2<br />* Item 3
</td>
<td># Item 1 <br /># Item 2<br /># Item 3</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
</tr>
<tr>
<td>
<strong> Item 1<br /></strong> Item 2<br />* Item 3
</td>
<td># Item 1 <br /># Item 2<br /># Item 3</td>
</tr>
</tbody>
</table>
</div>
40 changes: 21 additions & 19 deletions src/test/suite/fixtures/expected/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,25 +180,27 @@ <h2><strong>lists:</strong></h2>
<div>
<h2><strong>table:</strong></h2>
</div>
<table>
<tbody>
<tr>
<th>heading 1</th>
<th>heading 2</th>
<th>heading 3</th>
</tr>
<tr>
<td>cell A1</td>
<td>cell A2</td>
<td>cell A3</td>
</tr>
<tr>
<td>cell B1</td>
<td>cell B2</td>
<td>cell B3</td>
</tr>
</tbody>
</table>
<div>
<table>
<tbody>
<tr>
<th>heading 1</th>
<th>heading 2</th>
<th>heading 3</th>
</tr>
<tr>
<td>cell A1</td>
<td>cell A2</td>
<td>cell A3</td>
</tr>
<tr>
<td>cell B1</td>
<td>cell B2</td>
<td>cell B3</td>
</tr>
</tbody>
</table>
</div>
<div><hr /></div>
<div>
<h2><strong>code:</strong></h2>
Expand Down

0 comments on commit 8774d08

Please sign in to comment.