Skip to content

Commit 3e4ad95

Browse files
committed
minor #116 Add a new test related to headless tables (javiereguiluz)
This PR was merged into the main branch. Discussion ---------- Add a new test related to headless tables Commits ------- b9f4558 Add a new test related to headless tables
2 parents 20662a3 + b9f4558 commit 3e4ad95

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

tests/fixtures/expected/blocks/nodes/tables.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<p>Simple table with head:</p>
2+
13
<table>
24
<thead>
35
<tr>
@@ -19,6 +21,26 @@
1921
</tr>
2022
</tbody>
2123
</table>
24+
25+
<p>Simple table headless:</p>
26+
27+
<table>
28+
<tbody>
29+
<tr>
30+
<td>/foo</td>
31+
<td>It matches (200 status response)</td>
32+
<td>It doesn't match (404 status response)</td>
33+
</tr>
34+
<tr>
35+
<td>/foo/</td>
36+
<td>It makes a 301 redirect to /foo/</td>
37+
<td>It matches (200 status response)</td>
38+
</tr>
39+
</tbody>
40+
</table>
41+
42+
<p>Grid table:</p>
43+
2244
<table>
2345
<tbody>
2446
<tr>
@@ -36,6 +58,9 @@
3658
</tr>
3759
</tbody>
3860
</table>
61+
62+
<p>Grid table with head:</p>
63+
3964
<table>
4065
<thead>
4166
<tr>
@@ -55,6 +80,9 @@
5580
</tr>
5681
</tbody>
5782
</table>
83+
84+
<p>Grid table with head and multi-line cells:</p>
85+
5886
<table>
5987
<thead>
6088
<tr>

tests/fixtures/source/blocks/nodes/tables.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Simple table with head:
12

23
========== ======================================== ==========================================
34
Route path If the requested URL is /foo If the requested URL is /foo/
@@ -6,6 +7,15 @@ Route path If the requested URL is /foo If the requested URL is /f
67
/foo/ It makes a 301 redirect to /foo/ It matches (200 status response)
78
========== ======================================== ==========================================
89

10+
Simple table headless:
11+
12+
========== ======================================== ==========================================
13+
/foo It matches (200 status response) It doesn't match (404 status response)
14+
/foo/ It makes a 301 redirect to /foo/ It matches (200 status response)
15+
========== ======================================== ==========================================
16+
17+
Grid table:
18+
919
+--------+------------+
1020
| Cell 1 | Cell 2 |
1121
+--------+------------+
@@ -15,6 +25,8 @@ Route path If the requested URL is /foo If the requested URL is /f
1525
| | extra line |
1626
+--------+------------+
1727

28+
Grid table with head:
29+
1830
+--------+------------+
1931
| Cell 1 | Cell 2 |
2032
+========+============+
@@ -24,6 +36,8 @@ Route path If the requested URL is /foo If the requested URL is /f
2436
| | extra line |
2537
+--------+------------+
2638

39+
Grid table with head and multi-line cells:
40+
2741
+--------+---------------+
2842
| Cell 1 | Cell 2 |
2943
+========+===============+

0 commit comments

Comments
 (0)