44 |
|
|
45 |
view = gzz.loom.SimpleView(NodeView()) |
view = gzz.loom.SimpleView(NodeView()) |
46 |
|
|
47 |
|
def testNullRotation(): |
48 |
|
r.addProperty(p, s) |
49 |
|
r.addProperty(p, t) |
50 |
|
|
51 |
|
vs = getvs() |
52 |
|
cursor = gzz.loom.Cursor(Cmp(), r, None) |
53 |
|
view.render(vs, 0, cursor) |
54 |
|
|
55 |
|
cs_r, cs_s, cs_t, cs_u, cs_v = [vs.matcher.getCS(0, x) |
56 |
|
for x in (r,s,t,u,v)] |
57 |
|
|
58 |
|
assert cs_u == cs_v == -1 |
59 |
|
|
60 |
|
pr, ps, pt = [vs.coords.transformPoint(cs, 0, 0, None) |
61 |
|
for cs in [cs_r, cs_s, cs_t]] |
62 |
|
|
63 |
|
assert pr.y == pt.y < ps.y |
64 |
|
assert ps.x == pt.x > pr.x |
65 |
|
|
66 |
|
|
67 |
def testSimple(): |
def testSimple(): |
68 |
r.addProperty(p, s) |
r.addProperty(p, s) |
69 |
r.addProperty(p, t) |
r.addProperty(p, t) |