mirror of https://github.com/sveltejs/svelte
parent
d727ab48d0
commit
2b62a29567
@ -0,0 +1,21 @@
|
|||||||
|
const ns = '<noscript></noscript>';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
'skip-ssr': true,
|
||||||
|
|
||||||
|
data: {
|
||||||
|
raw: '<p>does not change</p>'
|
||||||
|
},
|
||||||
|
|
||||||
|
html: `<div>${ns}<p>does not change</p>${ns}</div>`,
|
||||||
|
|
||||||
|
test ( assert, component, target ) {
|
||||||
|
const p = target.querySelector( 'p' );
|
||||||
|
|
||||||
|
component.set({ raw: '<p>does not change</p>' });
|
||||||
|
assert.equal( target.innerHTML, `<div>${ns}<p>does not change</p>${ns}</div>` );
|
||||||
|
assert.strictEqual( target.querySelector( 'p' ), p );
|
||||||
|
|
||||||
|
component.teardown();
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
<div>{{{raw}}}</div>
|
Loading…
Reference in new issue