From f24ef153feb2f15d923b3f62d6a9030bb86a0498 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:24:55 +0300 Subject: [PATCH] Update readerhighlight_spec.lua --- spec/unit/readerhighlight_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/unit/readerhighlight_spec.lua b/spec/unit/readerhighlight_spec.lua index c83b9fb42..e7f7c8d55 100644 --- a/spec/unit/readerhighlight_spec.lua +++ b/spec/unit/readerhighlight_spec.lua @@ -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