|
|
@ -186,13 +186,13 @@ describe("Readerrolling module", function()
|
|
|
|
it("should show pages for different word gap", function()
|
|
|
|
it("should show pages for different word gap", function()
|
|
|
|
readerui.document:setSpaceCondensing(100)
|
|
|
|
readerui.document:setSpaceCondensing(100)
|
|
|
|
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
|
|
|
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
|
|
|
assert.are.same(248, readerui.document:getPageCount())
|
|
|
|
assert.are.same(251, readerui.document:getPageCount())
|
|
|
|
readerui.document:setSpaceCondensing(75)
|
|
|
|
readerui.document:setSpaceCondensing(75)
|
|
|
|
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
|
|
|
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
|
|
|
assert.are.same(241, readerui.document:getPageCount())
|
|
|
|
assert.are.same(242, readerui.document:getPageCount())
|
|
|
|
readerui.document:setSpaceCondensing(50)
|
|
|
|
readerui.document:setSpaceCondensing(50)
|
|
|
|
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
|
|
|
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
|
|
|
assert.are.same(231, readerui.document:getPageCount())
|
|
|
|
assert.are.same(233, readerui.document:getPageCount())
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|