UIManager: get rid of self._running and self._run_forever (#9669)

This commit is contained in:
zwim
2022-10-27 22:08:38 +02:00
committed by GitHub
parent 88add4ed6f
commit 31b16ba3e1
8 changed files with 59 additions and 30 deletions

View File

@@ -28,6 +28,7 @@ describe("ReaderLink module", function()
it("should jump to links in pdf page mode", function()
UIManager:quit()
UIManager._exit_code = nil
local readerui = ReaderUI:new{
dimen = Screen:getSize(),
document = DocumentRegistry:openDocument(sample_pdf),
@@ -44,6 +45,7 @@ describe("ReaderLink module", function()
it("should jump to links in pdf scroll mode", function()
UIManager:quit()
UIManager._exit_code = nil
local readerui = ReaderUI:new{
dimen = Screen:getSize(),
document = DocumentRegistry:openDocument(sample_pdf),
@@ -78,6 +80,7 @@ describe("ReaderLink module", function()
it("should be able to go back after link jump in pdf page mode", function()
UIManager:quit()
UIManager._exit_code = nil
local readerui = ReaderUI:new{
dimen = Screen:getSize(),
document = DocumentRegistry:openDocument(sample_pdf),
@@ -96,6 +99,7 @@ describe("ReaderLink module", function()
it("should be able to go back after link jump in pdf scroll mode", function()
UIManager:quit()
UIManager._exit_code = nil
local readerui = ReaderUI:new{
dimen = Screen:getSize(),
document = DocumentRegistry:openDocument(sample_pdf),
@@ -116,6 +120,7 @@ describe("ReaderLink module", function()
it("should be able to go back to the same position after link jump in pdf scroll mode", function()
UIManager:quit()
UIManager._exit_code = nil
local expected_page_states = {
{
gamma = 1,