mirror of https://github.com/sveltejs/svelte
parent
e68a3466b9
commit
4ee6f7814d
@ -1 +1,3 @@
|
||||
<div><!-- test1 --><!-- test2 --></div>
|
||||
p
|
||||
<div><!-- test1 --><!-- test2 --></div>
|
||||
|
||||
@ -1 +1,3 @@
|
||||
<div><!-- test1 --></div>
|
||||
p
|
||||
<div><!-- test1 --><!-- test2 --></div>
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
preserveComments:true
|
||||
},
|
||||
snapshot(target) {
|
||||
return {
|
||||
div: target.querySelectorAll('div')[1]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -1 +1,3 @@
|
||||
<div><!-- test1 --><!-- test2 --></div>
|
||||
{"p"}
|
||||
<div><!-- test1 --><!-- test2 --></div>
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
snapshot(target) {
|
||||
return {
|
||||
main: target.querySelector('main'),
|
||||
p: target.querySelector('p')
|
||||
};
|
||||
}
|
||||
};
|
||||
Loading…
Reference in new issue