diff --git a/lib/ace/ext/static_highlight_test.js b/lib/ace/ext/static_highlight_test.js
index 707d00ea..0cebda9b 100644
--- a/lib/ace/ext/static_highlight_test.js
+++ b/lib/ace/ext/static_highlight_test.js
@@ -26,7 +26,7 @@ function hello (a, b, c) {\n\
var mode = new JavaScriptMode();
var result = highlighter.render(snippet, mode, theme);
- assert.equal(result.html, "
1
2
3
4function hello (a, b, c) {
5 console.log(a * b + c + 'sup?');
6}
");
+ assert.equal(result.html, " 1
2
3
4function\xa0hello\xa0(a,\xa0b,\xa0c)\xa0{
5\xa0\xa0\xa0\xa0console.log(a\xa0*\xa0b\xa0+\xa0c\xa0+\xa0'sup?');
6}
");
assert.ok(!!result.css);
next();
},
diff --git a/lib/ace/layer/text_test.js b/lib/ace/layer/text_test.js
index b0aad573..a14a37e6 100644
--- a/lib/ace/layer/text_test.js
+++ b/lib/ace/layer/text_test.js
@@ -89,7 +89,8 @@ module.exports = {
"test rendering of indent guides" : function() {
var textLayer = this.textLayer
var EOL = "" + textLayer.EOL_CHAR + "";
- var SPACE = function(i) {return Array(i+1).join(" ")}
+ var SPACE = function(i) {return Array(i+1).join("\xa0")}
+ var DOT = function(i) {return Array(i+1).join(textLayer.SPACE_CHAR)}
var TAB = function(i) {return textLayer.TAB_CHAR + SPACE(i-1)}
function testRender(results) {
for (var i = results.length; i--; ) {
@@ -107,12 +108,12 @@ module.exports = {
]);
this.textLayer.setShowInvisibles(true);
testRender([
- "" + SPACE(4) + "" + SPACE(2) + EOL,
+ "" + DOT(4) + "" + DOT(2) + "" + EOL,
"" + TAB(4) + "" + TAB(4) + "f" + EOL,
]);
this.textLayer.setDisplayIndentGuides(false);
testRender([
- SPACE(6) + EOL,
+ "" + DOT(6) + "" + EOL,
"" + TAB(4) + "" + TAB(4) + "f" + EOL
]);
}