Fix readerbookmark unit test

pull/1506/head
chrox 9 years ago
parent 16efbcf223
commit 0058bc8511

@ -197,7 +197,8 @@ describe("ReaderBookmark module", function()
assert.are.same(15, readerui.bookmark:getNextBookmarkedPage(10)) assert.are.same(15, readerui.bookmark:getNextBookmarkedPage(10))
end) end)
it("should search/add bookmarks properly #now", function() it("should search/add bookmarks properly #now", function()
DEBUG:turnOn() -- clear bookmarks created by previous tests
readerui.bookmark.bookmarks = {}
local p1 = { x = 0, y = 0, page = 100 } local p1 = { x = 0, y = 0, page = 100 }
local bm1 = { notes = 'foo', page = 10, local bm1 = { notes = 'foo', page = 10,
pos0 = { x = 0, y = 0, page = 100 }, pos1 = p1, } pos0 = { x = 0, y = 0, page = 100 }, pos1 = p1, }

Loading…
Cancel
Save