Update readerhighlight_spec.lua

reviewable/pr11563/r8
hius07 1 month ago committed by GitHub
parent 37eedddce7
commit f24ef153fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -106,6 +106,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should highlight single word", function()
highlight_single_word(readerui, Geom:new{ x = 400, y = 70 })
@ -154,6 +155,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should response on tap gesture #nocov", function()
tap_highlight_text(readerui,
@ -181,6 +183,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should respond to tap gesture #nocov", function()
tap_highlight_text(readerui, Geom:new{ x = 260, y = 70 }, Geom:new{ x = 260, y = 150 }, Geom:new{ x = 280, y = 110 })
@ -206,6 +209,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
readerui.document.configurable.text_wrap = 0
UIManager:close(readerui) -- close to flush settings
-- We haven't torn it down yet
@ -253,6 +257,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should highlight single word", function()
highlight_single_word(readerui, Geom:new{ x = 260, y = 70 })
@ -281,6 +286,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
end)
it("should highlight single word", function()
highlight_single_word(readerui, Geom:new{ x = 260, y = 70 })
@ -306,6 +312,7 @@ describe("Readerhighlight module", function()
end)
after_each(function()
readerui.highlight:clear()
readerui.annotation.annotations = {}
readerui.document.configurable.text_wrap = 0
UIManager:close(readerui) -- close to flush settings
-- We haven't torn it down yet

Loading…
Cancel
Save