-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fixtures to match table block deprecations
- Loading branch information
1 parent
d6d0227
commit ec0b6d5
Showing
8 changed files
with
336 additions
and
164 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
packages/e2e-tests/fixtures/blocks/core__table__deprecated-1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:core/table --> | ||
<table class="wp-block-table"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href="https://wordpress.org/news/2003/05/wordpress-now-available/">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href="https://wordpress.org/news/2004/01/wordpress-10/">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href="https://codex.wordpress.org/WordPress_Versions">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href="https://wordpress.org/news/2015/12/clifford/">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href="https://wordpress.org/news/2016/04/coleman/">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/08/pepper/">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/12/vaughan/">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table> | ||
<!-- /wp:core/table --> | ||
<!-- wp:table {"backgroundColor":"subtle-pale-blue"} --> | ||
<figure class="wp-block-table"><table class="has-subtle-pale-blue-background-color has-background"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href="https://wordpress.org/news/2003/05/wordpress-now-available/">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href="https://wordpress.org/news/2004/01/wordpress-10/">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href="https://codex.wordpress.org/WordPress_Versions">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href="https://wordpress.org/news/2015/12/clifford/">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href="https://wordpress.org/news/2016/04/coleman/">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/08/pepper/">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/12/vaughan/">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table><figcaption>Table Caption</figcaption></figure> | ||
<!-- /wp:table --> |
292 changes: 149 additions & 143 deletions
292
packages/e2e-tests/fixtures/blocks/core__table__deprecated-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,145 +1,151 @@ | ||
[ | ||
{ | ||
"clientId": "_clientId_0", | ||
"name": "core/table", | ||
"isValid": true, | ||
"attributes": { | ||
"hasFixedLayout": false, | ||
"head": [ | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "Version", | ||
"tag": "th" | ||
}, | ||
{ | ||
"content": "Musician", | ||
"tag": "th" | ||
}, | ||
{ | ||
"content": "Date", | ||
"tag": "th" | ||
} | ||
] | ||
} | ||
], | ||
"body": [ | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "No musician chosen.", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "May 27, 2003", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Miles Davis", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "January 3, 2004", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "…", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "…", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Clifford Brown", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "December 8, 2015", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Coleman Hawkins", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "April 12, 2016", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Pepper Adams", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "August 16, 2016", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Sarah Vaughan", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "December 6, 2016", | ||
"tag": "td" | ||
} | ||
] | ||
} | ||
], | ||
"foot": [] | ||
}, | ||
"innerBlocks": [], | ||
"originalContent": "<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>" | ||
} | ||
{ | ||
"clientId": "_clientId_0", | ||
"name": "core/table", | ||
"isValid": true, | ||
"attributes": { | ||
"hasFixedLayout": false, | ||
"caption": "Table Caption", | ||
"head": [ | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "Version", | ||
"tag": "th" | ||
}, | ||
{ | ||
"content": "Musician", | ||
"tag": "th" | ||
}, | ||
{ | ||
"content": "Date", | ||
"tag": "th" | ||
} | ||
] | ||
} | ||
], | ||
"body": [ | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "No musician chosen.", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "May 27, 2003", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Miles Davis", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "January 3, 2004", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "…", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "…", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Clifford Brown", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "December 8, 2015", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Coleman Hawkins", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "April 12, 2016", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Pepper Adams", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "August 16, 2016", | ||
"tag": "td" | ||
} | ||
] | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"content": "<a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a>", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "Sarah Vaughan", | ||
"tag": "td" | ||
}, | ||
{ | ||
"content": "December 6, 2016", | ||
"tag": "td" | ||
} | ||
] | ||
} | ||
], | ||
"foot": [], | ||
"style": { | ||
"color": { | ||
"background": "#e7f5fe" | ||
} | ||
} | ||
}, | ||
"innerBlocks": [], | ||
"originalContent": "<figure class=\"wp-block-table\"><table class=\"has-subtle-pale-blue-background-color has-background\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table><figcaption>Table Caption</figcaption></figure>" | ||
} | ||
] |
27 changes: 11 additions & 16 deletions
27
packages/e2e-tests/fixtures/blocks/core__table__deprecated-1.parsed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
[ | ||
{ | ||
"blockName": "core/table", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n", | ||
"innerContent": [ | ||
"\n<table class=\"wp-block-table\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table>\n" | ||
] | ||
}, | ||
{ | ||
"blockName": null, | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n", | ||
"innerContent": [ "\n" ] | ||
} | ||
{ | ||
"blockName": "core/table", | ||
"attrs": { | ||
"backgroundColor": "subtle-pale-blue" | ||
}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n<figure class=\"wp-block-table\"><table class=\"has-subtle-pale-blue-background-color has-background\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table><figcaption>Table Caption</figcaption></figure>\n", | ||
"innerContent": [ | ||
"\n<figure class=\"wp-block-table\"><table class=\"has-subtle-pale-blue-background-color has-background\"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href=\"https://wordpress.org/news/2003/05/wordpress-now-available/\">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href=\"https://wordpress.org/news/2004/01/wordpress-10/\">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href=\"https://codex.wordpress.org/WordPress_Versions\">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href=\"https://wordpress.org/news/2015/12/clifford/\">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/04/coleman/\">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/08/pepper/\">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href=\"https://wordpress.org/news/2016/12/vaughan/\">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table><figcaption>Table Caption</figcaption></figure>\n" | ||
] | ||
} | ||
] |
4 changes: 2 additions & 2 deletions
4
packages/e2e-tests/fixtures/blocks/core__table__deprecated-1.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:table --> | ||
<figure class="wp-block-table"><table><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href="https://wordpress.org/news/2003/05/wordpress-now-available/">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href="https://wordpress.org/news/2004/01/wordpress-10/">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href="https://codex.wordpress.org/WordPress_Versions">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href="https://wordpress.org/news/2015/12/clifford/">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href="https://wordpress.org/news/2016/04/coleman/">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/08/pepper/">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/12/vaughan/">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table></figure> | ||
<!-- wp:table {"style":{"color":{"background":"#e7f5fe"}}} --> | ||
<figure class="wp-block-table"><table class="has-background" style="background-color:#e7f5fe"><thead><tr><th>Version</th><th>Musician</th><th>Date</th></tr></thead><tbody><tr><td><a href="https://wordpress.org/news/2003/05/wordpress-now-available/">.70</a></td><td>No musician chosen.</td><td>May 27, 2003</td></tr><tr><td><a href="https://wordpress.org/news/2004/01/wordpress-10/">1.0</a></td><td>Miles Davis</td><td>January 3, 2004</td></tr><tr><td>Lots of versions skipped, see <a href="https://codex.wordpress.org/WordPress_Versions">the full list</a></td><td>…</td><td>…</td></tr><tr><td><a href="https://wordpress.org/news/2015/12/clifford/">4.4</a></td><td>Clifford Brown</td><td>December 8, 2015</td></tr><tr><td><a href="https://wordpress.org/news/2016/04/coleman/">4.5</a></td><td>Coleman Hawkins</td><td>April 12, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/08/pepper/">4.6</a></td><td>Pepper Adams</td><td>August 16, 2016</td></tr><tr><td><a href="https://wordpress.org/news/2016/12/vaughan/">4.7</a></td><td>Sarah Vaughan</td><td>December 6, 2016</td></tr></tbody></table><figcaption>Table Caption</figcaption></figure> | ||
<!-- /wp:table --> |
Oops, something went wrong.