tests: speedup readerrolling tests

This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-12-25 17:29:40 +01:00
1 parent 5bf1464f09
commit 3d2a6a17ad
1 file changed
+2 -2
+2 -2
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)