50 |
r.addProperty(p, t) |
r.addProperty(p, t) |
51 |
|
|
52 |
vs = getvs() |
vs = getvs() |
53 |
cursor = gzz.loom.Cursor(Cmp(), r, 0, None) |
cursor = gzz.loom.Cursor(Cmp()) |
54 |
|
cursor.set(r) |
55 |
view.render(vs, 0, cursor) |
view.render(vs, 0, cursor) |
56 |
|
|
57 |
cs_r, cs_s, cs_t, cs_u, cs_v = [vs.matcher.getCS(0, x) |
cs_r, cs_s, cs_t, cs_u, cs_v = [vs.matcher.getCS(0, x) |
76 |
|
|
77 |
vs = getvs() |
vs = getvs() |
78 |
cursor = gzz.loom.Cursor(Cmp(), r, 1, s) |
cursor = gzz.loom.Cursor(Cmp(), r, 1, s) |
79 |
|
assert cursor.rotation == 0 |
80 |
view.render(vs, 0, cursor) |
view.render(vs, 0, cursor) |
81 |
|
|
82 |
cs_r, cs_s, cs_t, cs_u, cs_v, cs_w = \ |
cs_r, cs_s, cs_t, cs_u, cs_v, cs_w = \ |
98 |
# s,t,u,v should be same size and on a single vertical line |
# s,t,u,v should be same size and on a single vertical line |
99 |
assert ps.x == pt.x == pu.x == pv.x > pr.x > pw.x |
assert ps.x == pt.x == pu.x == pv.x > pr.x > pw.x |
100 |
|
|
101 |
# s and w should be approx. the same height as r, |
# s and w should be the same height as r, |
102 |
# while t is above and v,u are below |
# while t is above and v,u are below |
103 |
assert pt.y == pw.y < pr.y == ps.y < pv.y < pu.y |
assert pt.y < pw.y == pr.y == ps.y < pv.y < pu.y |
104 |
|
|
105 |
# distances on both sides should be equal |
# distances on both sides should be equal |
106 |
# this works only if all nodes are same size... XXX |
# this works only if all nodes are same size... XXX |