Commit 69713dca authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

ensure some non-null view size, fixes tests on wayland

parent 7b27c60d
Pipeline #120832 failed with stage
in 3 minutes and 23 seconds
......@@ -229,7 +229,9 @@ void LocationHistoryTest::test_addOnlyIfViewLineCountAwayFromCurrentPos()
// Changing cursor position will only be added to location
// history if view line count away
// ensure the view has some non-null size
auto view = vm->activeView();
view->resize(600, 600);
int vlc = viewLineCount(view);
view->setCursorPosition({2 * vlc, 0});
QCOMPARE(vs->locationHistoryBuffer().size(), 2);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment