Skip to content

Commit

Permalink
Correct for color normalization in phantomjs in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 20, 2018
1 parent 01758b1 commit 2754478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.js
Expand Up @@ -549,7 +549,7 @@ testCM("markTextCSS", function(cm) {
function present() {
var spans = cm.display.lineDiv.getElementsByTagName("span");
for (var i = 0; i < spans.length; i++)
if (spans[i].style.color == "cyan" && spans[i].textContent == "cdef") return true;
if (spans[i].style.color && spans[i].textContent == "cdef") return true;
}
var m = cm.markText(Pos(0, 2), Pos(0, 6), {css: "color: cyan"});
is(present());
Expand Down

0 comments on commit 2754478

Please sign in to comment.