mirror of https://github.com/sveltejs/svelte
parent
f18ad5e6f6
commit
4f61dfc338
@ -1,8 +1,16 @@
|
|||||||
export default {
|
export default {
|
||||||
html: `<div>hello </div>`,
|
html: `<div> hello</div>
|
||||||
|
<div> hello </div>
|
||||||
|
<div> hello hello</div>`,
|
||||||
|
|
||||||
test({ assert, component, target }) {
|
test({ assert, component, target }) {
|
||||||
const text = target.querySelector( 'div' ).textContent;
|
var divList = target.querySelectorAll('div')
|
||||||
assert.equal( text.charCodeAt( 5 ), 160 );
|
assert.equal( divList[0].textContent.charCodeAt( 0 ), 160 );
|
||||||
|
assert.equal( divList[1].textContent.charCodeAt( 0 ), 160 );
|
||||||
|
assert.equal( divList[1].textContent.charCodeAt( 6 ), 160 );
|
||||||
|
assert.equal( divList[2].textContent.charCodeAt( 0 ), 160 );
|
||||||
|
assert.equal( divList[2].textContent.charCodeAt( 6 ), 160 );
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in new issue