Skip to content
Snippets Groups Projects
Commit 4ff1fc03 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Fix new test to work with different zoom levels

parent 726c6168
No related branches found
No related tags found
No related merge requests found
......@@ -501,9 +501,9 @@ testCM("moveV stuck", function(cm) {
var lines = byClassName(cm.getWrapperElement(), "CodeMirror-lines")[0].firstChild, h0 = lines.offsetHeight;
var val = "fooooooooooooooooooooooooo baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar\n";
cm.setValue(val);
for (var w = 50;; w += 10) {
for (var w = 50;; w += 5) {
cm.setSize(w);
if (lines.offsetHeight < 3 * h0) break;
if (lines.offsetHeight <= 3 * h0) break;
}
cm.setCursor({line: 0, ch: val.length - 1});
cm.moveV(-1, "line");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment