Skip to content

Commit

Permalink
add fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored and ellatrix committed Mar 16, 2022
1 parent edb31c8 commit 74e079f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/block-library/src/list-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
"content": {
"type": "string",
"source": "html",
"selector": "li",
"selector": "li",
"default": "",
"__experimentalRole": "content"
}
},
"supports": {
"className": false,
"__experimentalSelector": "li"
},
"editorStyle": "wp-block-list-item-editor",
"style": "wp-block-list-item"
}
}
1 change: 1 addition & 0 deletions test/integration/fixtures/blocks/core__list-item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:list-item --><li></li><!-- /wp:list-item -->
10 changes: 10 additions & 0 deletions test/integration/fixtures/blocks/core__list-item.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"name": "core/list-item",
"isValid": true,
"attributes": {
"content": ""
},
"innerBlocks": []
}
]
9 changes: 9 additions & 0 deletions test/integration/fixtures/blocks/core__list-item.parsed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"blockName": "core/list-item",
"attrs": {},
"innerBlocks": [],
"innerHTML": "<li></li>",
"innerContent": [ "<li></li>" ]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- wp:list-item -->
<li></li>
<!-- /wp:list-item -->

0 comments on commit 74e079f

Please sign in to comment.