-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from SaekiTominaga/markuplint/test
Separate files for each test case
- Loading branch information
Showing
65 changed files
with
804 additions
and
485 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
packages/markuplint/__tests__/invalid/nodeRules/details.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`details`</title> | ||
</head> | ||
<body> | ||
<h1><code>details</code></h1> | ||
|
||
<details name="details-name"> | ||
<summary>summary</summary> | ||
<details name="details-name"> | ||
<summary>summary</summary> | ||
</details> | ||
</details> | ||
</body> | ||
</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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`div`</title> | ||
</head> | ||
<body> | ||
<h1><code>div</code></h1> | ||
|
||
<div>text</div> | ||
</body> | ||
</html> |
37 changes: 37 additions & 0 deletions
37
packages/markuplint/__tests__/invalid/nodeRules/figure-table.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`figure table`</title> | ||
</head> | ||
<body> | ||
<h1><code>figure table</code></h1> | ||
|
||
<figure> | ||
<figcaption>text</figcaption> | ||
<table> | ||
<caption> | ||
text | ||
</caption> | ||
<tbody> | ||
<tr> | ||
<td>text</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</figure> | ||
|
||
<figure> | ||
<table> | ||
<caption> | ||
text | ||
</caption> | ||
<tbody> | ||
<tr> | ||
<td>text</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<figcaption>text</figcaption> | ||
</figure> | ||
</body> | ||
</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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>`html`</title> | ||
</head> | ||
<body> | ||
<h1><code>html</code></h1> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
packages/markuplint/__tests__/invalid/nodeRules/iframe.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`iframe`</title> | ||
</head> | ||
<body> | ||
<h1><code>iframe</code></h1> | ||
|
||
<iframe></iframe> | ||
</body> | ||
</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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`img`</title> | ||
</head> | ||
<body> | ||
<h1><code>img</code></h1> | ||
|
||
<img src="" title="alt" /> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
packages/markuplint/__tests__/invalid/nodeRules/input.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`input`</title> | ||
</head> | ||
<body> | ||
<h1><code>input</code></h1> | ||
|
||
<input pattern="xxx" /> | ||
</body> | ||
</html> |
13 changes: 13 additions & 0 deletions
13
packages/markuplint/__tests__/invalid/nodeRules/meta[property].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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`meta[property]`</title> | ||
|
||
<meta property="" /> | ||
<meta property="og:" /> | ||
<meta property="foo:bar" /> | ||
</head> | ||
<body> | ||
<h1><code>meta[property]</code></h1> | ||
</body> | ||
</html> |
19 changes: 19 additions & 0 deletions
19
packages/markuplint/__tests__/invalid/nodeRules/object.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`object`</title> | ||
</head> | ||
<body> | ||
<h1><code>object</code></h1> | ||
|
||
<object data="object" role="img" aria-labelledby="object-label1"> | ||
<div id="object-label1">text</div> | ||
</object> | ||
|
||
<object data="object" type="image/png" aria-labelledby="object-label2"> | ||
<div id="object-label2">text</div> | ||
</object> | ||
|
||
<object data="object" type="image/png" role="img" aria-label="label">text</object> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
packages/markuplint/__tests__/invalid/nodeRules/search.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`search`</title> | ||
</head> | ||
<body> | ||
<h1><code>search</code></h1> | ||
|
||
<search>text</search> | ||
</body> | ||
</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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>`th`</title> | ||
</head> | ||
<body> | ||
<h1><code>th</code></h1> | ||
|
||
<table> | ||
<caption> | ||
text | ||
</caption> | ||
<thead> | ||
<tr> | ||
<th>text</th> | ||
<th scope="row">text</th> | ||
<th scope="rowgroup">text</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th>text</th> | ||
<th scope="col">text</th> | ||
<th scope="colgroup">text</th> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
Oops, something went wrong.