From dea4149c0e062c1d02208706bf13917996021454 Mon Sep 17 00:00:00 2001 From: qintarp Date: Sat, 15 Jun 2019 12:49:05 +0300 Subject: [PATCH] small fix to main test --- test/runtime/samples/nbsp-div/_config.js | 5 +++-- test/runtime/samples/nbsp-div/main.svelte | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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