refactor test

pull/8105/head
Yuichiro Yamashita 4 years ago
parent eaa9fc379a
commit 3fbf3ccc6c

@ -1,4 +0,0 @@
<Component>
<!-- svelte-ignore a11y-missing-attribute -->
<a slot='foo'></a>
</Component>

@ -1,72 +0,0 @@
{
"html": {
"start": 0,
"end": 92,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 92,
"type": "InlineComponent",
"name": "Component",
"attributes": [],
"children": [
{
"start": 11,
"end": 13,
"type": "Text",
"raw": "\n\t",
"data": "\n\t"
},
{
"start": 13,
"end": 58,
"type": "Comment",
"data": " svelte-ignore a11y-missing-attribute ",
"ignores": [
"a11y-missing-attribute"
]
},
{
"start": 58,
"end": 61,
"type": "Text",
"raw": " \n\t",
"data": " \n\t"
},
{
"start": 61,
"end": 79,
"type": "Element",
"name": "a",
"attributes": [
{
"start": 64,
"end": 74,
"type": "Attribute",
"name": "slot",
"value": [
{
"start": 70,
"end": 73,
"type": "Text",
"raw": "foo",
"data": "foo"
}
]
}
],
"children": []
},
{
"start": 79,
"end": 80,
"type": "Text",
"raw": "\n",
"data": "\n"
}
]
}
]
}
}

@ -0,0 +1,8 @@
<script>
import Component from './Component.svelte';
</script>
<Component>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div slot='foo' on:click>hi!</div>
</Component>

@ -0,0 +1,7 @@
<script>
import Component from './Component.svelte';
</script>
<Component>
<div slot='foo' on:click>hi!</div>
</Component>

@ -0,0 +1,17 @@
[
{
"code": "a11y-click-events-have-key-events",
"message": "A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.",
"start": {
"character": 78,
"column": 1,
"line": 6
},
"end": {
"character": 112,
"column": 35,
"line": 6
},
"pos": 78
}
]

@ -0,0 +1,8 @@
<script>
import Component from './Component.svelte';
</script>
<Component>
<!-- svelte-ignore unrelated-warning -->
<div slot='foo' on:click>hi!</div>
</Component>

@ -0,0 +1,17 @@
[
{
"code": "a11y-click-events-have-key-events",
"message": "A11y: visible, non-interactive elements with an on:click event must be accompanied by an on:keydown, on:keyup, or on:keypress event.",
"start": {
"character": 120,
"column": 1,
"line": 7
},
"end": {
"character": 154,
"column": 35,
"line": 7
},
"pos": 120
}
]
Loading…
Cancel
Save