diff --git a/test/runtime/samples/nbsp-div/_config.js b/test/runtime/samples/nbsp-div/_config.js index 32e4d23703..6026af2c90 100644 --- a/test/runtime/samples/nbsp-div/_config.js +++ b/test/runtime/samples/nbsp-div/_config.js @@ -1,7 +1,7 @@ export default { html: `
 hello
 hello  
-
 hello  hello
`, +
 hello   hello
`, test({ assert, component, target }) { var divList = target.querySelectorAll('div') @@ -11,7 +11,8 @@ export default { assert.equal( divList[1].textContent.charCodeAt( 7 ), 160 ); assert.equal( divList[2].textContent.charCodeAt( 0 ), 160 ); assert.equal( divList[2].textContent.charCodeAt( 6 ), 160 ); - assert.equal( divList[2].textContent.charCodeAt( 7 ), 160 ); + assert.equal( divList[2].textContent.charCodeAt( 7 ), 32 );//normal space + assert.equal( divList[2].textContent.charCodeAt( 8 ), 160 ); } diff --git a/test/runtime/samples/nbsp-div/main.svelte b/test/runtime/samples/nbsp-div/main.svelte index aede3b7ae1..64557bfeb1 100644 --- a/test/runtime/samples/nbsp-div/main.svelte +++ b/test/runtime/samples/nbsp-div/main.svelte @@ -4,4 +4,4 @@
 {name}
 {name}  
-
 {name}  {name}
\ No newline at end of file +
 {name}   {name}
\ No newline at end of file