tests: speedup readerrolling tests

This commit is contained in:
Benoit Pierre
2024-12-25 15:46:12 +01:00
committed by Frans de Jonge
parent 5bf1464f09
commit 3d2a6a17ad

View File

@@ -178,7 +178,7 @@ describe("Readerrolling module", function()
readerui:handleEvent(Event:new("SetRotationMode", Screen.DEVICE_ROTATED_UPRIGHT))
end)
it("for portrait-landscape-portrait switching", function()
for i = 80, 100, 10 do
for i = 80, 10 do
readerui:handleEvent(Event:new("SetRotationMode", Screen.DEVICE_ROTATED_UPRIGHT))
rolling:onGotoPage(i)
assert.are.same(i, rolling.current_page)
@@ -189,7 +189,7 @@ describe("Readerrolling module", function()
end
end)
it("for landscape-portrait-landscape switching", function()
for i = 110, 130, 10 do
for i = 110, 20 do
readerui:handleEvent(Event:new("SetRotationMode", Screen.DEVICE_ROTATED_CLOCKWISE))
rolling:onGotoPage(i)
assert.are.same(i, rolling.current_page)