Skip to content

Commit 2754478

Browse files
committed
Correct for color normalization in phantomjs in a test
1 parent 01758b1 commit 2754478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ testCM("markTextCSS", function(cm) {
549549
function present() {
550550
var spans = cm.display.lineDiv.getElementsByTagName("span");
551551
for (var i = 0; i < spans.length; i++)
552-
if (spans[i].style.color == "cyan" && spans[i].textContent == "cdef") return true;
552+
if (spans[i].style.color && spans[i].textContent == "cdef") return true;
553553
}
554554
var m = cm.markText(Pos(0, 2), Pos(0, 6), {css: "color: cyan"});
555555
is(present());

0 commit comments

Comments
 (0)