mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
failing tests for #637
This commit is contained in:
parent
835a48bec5
commit
a197c18523
10
test/runtime/samples/raw-anchor-first-child/_config.js
Normal file
10
test/runtime/samples/raw-anchor-first-child/_config.js
Normal file
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
data: {
|
||||
raw: `<span>foo</span>`
|
||||
},
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const span = target.querySelector('span');
|
||||
assert.equal(!span.previousSibling);
|
||||
}
|
||||
};
|
1
test/runtime/samples/raw-anchor-first-child/main.html
Normal file
1
test/runtime/samples/raw-anchor-first-child/main.html
Normal file
@ -0,0 +1 @@
|
||||
<div>{{{raw}}}{{#if maybe}}after{{/if}}</div>
|
11
test/runtime/samples/raw-anchor-first-last-child/_config.js
Normal file
11
test/runtime/samples/raw-anchor-first-last-child/_config.js
Normal file
@ -0,0 +1,11 @@
|
||||
export default {
|
||||
data: {
|
||||
raw: `<span>foo</span>`
|
||||
},
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const span = target.querySelector('span');
|
||||
assert.equal(!span.previousSibling);
|
||||
assert.equal(!span.nextSibling);
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
<div>{{{raw}}}</div>
|
10
test/runtime/samples/raw-anchor-last-child/_config.js
Normal file
10
test/runtime/samples/raw-anchor-last-child/_config.js
Normal file
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
data: {
|
||||
raw: `<span>foo</span>`
|
||||
},
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const span = target.querySelector('span');
|
||||
assert.equal(!span.nextSibling);
|
||||
}
|
||||
};
|
1
test/runtime/samples/raw-anchor-last-child/main.html
Normal file
1
test/runtime/samples/raw-anchor-last-child/main.html
Normal file
@ -0,0 +1 @@
|
||||
<div>{{#if maybe}}after{{/if}}{{{raw}}}</div>
|
@ -0,0 +1,11 @@
|
||||
export default {
|
||||
data: {
|
||||
raw: `<span>foo</span>`
|
||||
},
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const span = target.querySelector('span');
|
||||
assert.equal(span.previousSibling.nodeName, 'BR');
|
||||
assert.equal(span.nextSibling.nodeName, 'BR');
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
before<br>{{{raw}}}<br>after
|
10
test/runtime/samples/raw-anchor-next-sibling/_config.js
Normal file
10
test/runtime/samples/raw-anchor-next-sibling/_config.js
Normal file
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
data: {
|
||||
raw: `<span>foo</span>`
|
||||
},
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const span = target.querySelector('span');
|
||||
assert.equal(span.previousSibling.nodeName, 'BR');
|
||||
}
|
||||
};
|
1
test/runtime/samples/raw-anchor-next-sibling/main.html
Normal file
1
test/runtime/samples/raw-anchor-next-sibling/main.html
Normal file
@ -0,0 +1 @@
|
||||
before<br>{{{raw}}}{{#if maybe}}after{{/if}}
|
10
test/runtime/samples/raw-anchor-previous-sibling/_config.js
Normal file
10
test/runtime/samples/raw-anchor-previous-sibling/_config.js
Normal file
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
data: {
|
||||
raw: `<span>foo</span>`
|
||||
},
|
||||
|
||||
test ( assert, component, target ) {
|
||||
const span = target.querySelector('span');
|
||||
assert.equal(span.previousSibling.nodeName, 'BR');
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
before<br>{{{raw}}}{{#if maybe}}after{{/if}}
|
Loading…
Reference in New Issue
Block a user