25 |
import sys |
import sys |
26 |
import traceback |
import traceback |
27 |
|
|
28 |
|
import org |
29 |
from org import fenfire |
from org import fenfire |
30 |
fenfire.test.gfx.needGL() |
fenfire.test.gfx.needGL() |
31 |
|
|
59 |
fenfire.util.PageSpanPaper.paperMill = vob.gl.PaperMill.getInstance() |
fenfire.util.PageSpanPaper.paperMill = vob.gl.PaperMill.getInstance() |
60 |
fenfire.util.PageSpanPaper.paperMillWindow = fenfire.test.gfx.win |
fenfire.util.PageSpanPaper.paperMillWindow = fenfire.test.gfx.win |
61 |
|
|
62 |
# /tmp/gzztest.pdf -- urn:x-storm:1.0:application/pdf,6qrwyxinrkbr6znvopuo2rnqc7jjfpqg.ettfngwwbh4ore2hljm4soyipujr42gc7becvgq |
# alph/testdata/test1.pdf -- urn:x-storm:1.0:application/pdf,6qrwyxinrkbr6znvopuo2rnqc7jjfpqg.ettfngwwbh4ore2hljm4soyipujr42gc7becvgq |
63 |
|
|
64 |
def setUp(): |
def setUp(): |
65 |
global sc |
global sc |
66 |
|
|
67 |
id = "urn:x-storm:1.0:application/pdf,6qrwyxinrkbr6znvopuo2rnqc7jjfpqg.ettfngwwbh4ore2hljm4soyipujr42gc7becvgq" |
pool = org.nongnu.storm.impl.TransientPool(java.util.HashSet()) |
68 |
sc = alph.impl.PageImageScroll(None, storm.BlockId(id)) |
myalph = alph.impl.StormAlph(pool) |
69 |
print sc.getID() |
sc = myalph.addFile(java.io.File('../alph/testdata/test1.pdf'), 'application/pdf') |
70 |
|
assert sc.getBlockId().getURI() == "urn:x-storm:1.0:application/pdf,6qrwyxinrkbr6znvopuo2rnqc7jjfpqg.ettfngwwbh4ore2hljm4soyipujr42gc7becvgq" |
71 |
|
|
72 |
def testTestSpan(): |
def testTestSpan(): |
73 |
"""Test that we really have the pagespan images. |
"""Test that we really have the pagespan images. |