test: start every test suit with a clean reader setting

This commit is contained in:
Qingping Hou
2016-03-12 13:59:49 -08:00
parent 6493b643ec
commit adc7ddccfc
4 changed files with 70 additions and 14 deletions

View File

@@ -53,6 +53,16 @@ function ReaderFooter:init()
book_time_to_read = true,
chapter_time_to_read = true,
}
if self.settings.disabled then
self.resetLayout = function() end
self.onCloseDocument = function() end
self.onPageUpdate = function() end
self.onPosUpdate = function() end
self.onUpdatePos = function() end
self.onSetStatusLine = function() end
return
end
self.progress_text = TextWidget:new{
text = '',
face = Font:getFace(self.text_font_face, self.text_font_size),