33 |
def testPaperAnythingJava(): |
def testPaperAnythingJava(): |
34 |
"""Test that libpaper, when called through |
"""Test that libpaper, when called through |
35 |
the Java API, renders anything. |
the Java API, renders anything. |
36 |
|
|
37 |
|
fail: GL |
38 |
""" |
""" |
39 |
vs = getvs() |
vs = getvs() |
40 |
vs.map.put(SolidBackdropVob(Color.black)) |
vs.map.put(SolidBackdropVob(Color.black)) |
58 |
def testDicing(): |
def testDicing(): |
59 |
"""Dicing paper a LOT - there have been some |
"""Dicing paper a LOT - there have been some |
60 |
too short allocated arrays. |
too short allocated arrays. |
61 |
|
|
62 |
|
fail: GL |
63 |
""" |
""" |
64 |
paper = PaperMill.getInstance().getPaper(57) |
paper = PaperMill.getInstance().getPaper(57) |
65 |
for df in (0, .1, .5, 1, 5, 10, 20, 37, 50): |
for df in (0, .1, .5, 1, 5, 10, 20, 37, 50): |
76 |
|
|
77 |
def testOptimizedPaper(): |
def testOptimizedPaper(): |
78 |
"""See that optimized paper really is same as |
"""See that optimized paper really is same as |
79 |
original.""" |
original. |
80 |
|
|
81 |
|
fail: GL |
82 |
|
""" |
83 |
for i in range(0,5): |
for i in range(0,5): |
84 |
p1 = PaperMill.getInstance().getPaper(i) |
p1 = PaperMill.getInstance().getPaper(i) |
85 |
p2 = PaperMill.getInstance().getOptimizedPaper(i, win) |
p2 = PaperMill.getInstance().getOptimizedPaper(i, win) |