mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
black_hex & white_hex added
This commit is contained in:
@@ -20,7 +20,7 @@ describe("Cache module", function()
|
||||
|
||||
it("should serialize blitbuffer", function()
|
||||
for pageno = 1, math.min(max_page, doc.info.number_of_pages) do
|
||||
doc:renderPage(pageno, nil, 1, 0, 1.0)
|
||||
doc:renderPage(pageno, nil, 1, 0, 1.0, 0x000000, 0xFFFFFF)
|
||||
DocCache:serialize()
|
||||
end
|
||||
DocCache:clear()
|
||||
@@ -28,7 +28,7 @@ describe("Cache module", function()
|
||||
|
||||
it("should deserialize blitbuffer", function()
|
||||
for pageno = 1, math.min(max_page, doc.info.number_of_pages) do
|
||||
doc:hintPage(pageno, 1, 0, 1.0, 0)
|
||||
doc:hintPage(pageno, 1, 0, 1.0, 0x000000, 0xFFFFFF)
|
||||
end
|
||||
DocCache:clear()
|
||||
end)
|
||||
@@ -36,7 +36,7 @@ describe("Cache module", function()
|
||||
it("should serialize koptcontext", function()
|
||||
doc.configurable.text_wrap = 1
|
||||
for pageno = 1, math.min(max_page, doc.info.number_of_pages) do
|
||||
doc:renderPage(pageno, nil, 1, 0, 1.0)
|
||||
doc:renderPage(pageno, nil, 1, 0, 1.0, 0x000000, 0xFFFFFF)
|
||||
doc:getPageDimensions(pageno)
|
||||
DocCache:serialize()
|
||||
end
|
||||
@@ -46,7 +46,7 @@ describe("Cache module", function()
|
||||
|
||||
it("should deserialize koptcontext", function()
|
||||
for pageno = 1, math.min(max_page, doc.info.number_of_pages) do
|
||||
doc:renderPage(pageno, nil, 1, 0, 1.0)
|
||||
doc:renderPage(pageno, nil, 1, 0, 1.0, 0x000000, 0xFFFFFF)
|
||||
end
|
||||
DocCache:clear()
|
||||
end)
|
||||
|
||||
@@ -23,7 +23,7 @@ describe("PDF benchmark:", function()
|
||||
end
|
||||
for pageno = 1, math.min(9, doc.info.number_of_pages) do
|
||||
local secs, usecs = util.gettime()
|
||||
assert.truthy(doc:renderPage(pageno, nil, 1, 0, 1.0))
|
||||
assert.truthy(doc:renderPage(pageno, nil, 1, 0, 1.0, , 0x000000, 0xFFFFFF))
|
||||
local nsecs, nusecs = util.gettime()
|
||||
local dur = nsecs - secs + (nusecs - usecs) / 1000000
|
||||
logDuration(logfile, pageno, dur)
|
||||
|
||||
Reference in New Issue
Block a user