mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 18:20:44 +00:00
Test Cel.position property
This commit is contained in:
parent
b14c6fc831
commit
d3ae1c32c0
@ -13,6 +13,7 @@ assert(c.layer == s.layers[1])
|
|||||||
assert(c.frame == 1)
|
assert(c.frame == 1)
|
||||||
assert(c.image)
|
assert(c.image)
|
||||||
assert(c.bounds == Rectangle(0, 0, 32, 64))
|
assert(c.bounds == Rectangle(0, 0, 32, 64))
|
||||||
|
assert(c.position == Point(0, 0))
|
||||||
assert(c.color == Color())
|
assert(c.color == Color())
|
||||||
assert(c.data == "")
|
assert(c.data == "")
|
||||||
|
|
||||||
@ -20,3 +21,7 @@ c.color = Color{ r=255, g=100, b=20 }
|
|||||||
c.data = "test"
|
c.data = "test"
|
||||||
assert(c.color == Color{ r=255, g=100, b=20 })
|
assert(c.color == Color{ r=255, g=100, b=20 })
|
||||||
assert(c.data == "test")
|
assert(c.data == "test")
|
||||||
|
|
||||||
|
c.position = Point(2, 4)
|
||||||
|
assert(c.position == Point(2, 4))
|
||||||
|
assert(c.bounds == Rectangle(2, 4, 32, 64))
|
||||||
|
Loading…
Reference in New Issue
Block a user