From 8b66fa23c8bc1bd58fb4b7c696d39b8f7e2c39b9 Mon Sep 17 00:00:00 2001 From: qintarp Date: Sat, 15 Jun 2019 12:40:42 +0300 Subject: [PATCH] adjacent nbsps are now present --- test/runtime/samples/nbsp-div/_config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/runtime/samples/nbsp-div/_config.js b/test/runtime/samples/nbsp-div/_config.js index 3114328b9d..32e4d23703 100644 --- a/test/runtime/samples/nbsp-div/_config.js +++ b/test/runtime/samples/nbsp-div/_config.js @@ -1,15 +1,17 @@ export default { html: `
 hello
-
 hello 
-
 hello hello
`, +
 hello  
+
 hello  hello
`, test({ assert, component, target }) { var divList = target.querySelectorAll('div') 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[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 ); }