-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.txt
61 lines (52 loc) · 3.04 KB
/
tests.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Tests:
x create a circle
x change location of a circle
x create a rectangle
x change location of a rectangle
x create a square
x change location of a square
x a point is outside a circle
x a point is inside a circle
x a point is on a circle
x a point is outside a rectangle
x a point is inside a rectangle
x a point is on the left edge of a rectangle
x a point is on the top edge of a rectangle
x a point is on the right edge of a rectangle
x a point is on the bottom edge of a rectangle
x a point is outside a square
x a point is inside a square
x a point is on the left edge of a square
x a point is on the top edge of a square
x a point is on the right edge of a square
x a point is on the bottom edge of a square
x a diagram has nothing in it
x add a circle to a diagram
x add two circles to a diagram
x add a circle and a rectangle to a diagram
x add a circle, a rectangle, and a square to a diagram
x a diagram with nothing ignores deleteAt(location) request
x a diagram with two circles deletes nothing when location is not within either circle
x a diagram with two circles at the same location deletes the first circle for location within the circle
x a diagram with two circles at different location delete second circle when location points to second circle
x a diagram with a circle and a rectangle, where circle is smaller and on top of the rectangle, delete circle when location is within the circle
x a diagram with a circle and a rectangle, where circle is smaller and on top of the rectangle, delete rectangle when location is within the rectangle but outside the circle
x a diagram with nothing returns nothing for selectAt(location) request
x a diagram with two circles selects nothing when location is not within either circle
x a diagram with two circles at the same location selects the first circle for location within the circle
x a diagram with two circles at different location selects the second circle when location points to second circle
x a diagram with a circle and a rectangle, where circle is smaller and on top of the rectangle, selects circle when location is within the circle
x a diagram with a circle and a rectangle, where circle is smaller and on top of the rectangle, selects rectangle when location is within the rectangle but outside the circle
x given a rectangular region, group all shapes within that region
x a diagram with shapes turns into a diagram with a group when all shapes are grouped
x a diagram with shapes turns into a diagram with a group and a few shapes when only a few shapes are grouped
x move a group and make sure all its members moved
x ungrouping a group replaces the group within the diagram with shapes in the group
x delete a group and make sure diagram does not have the group nor the shapes that were in the group
x group two groups and a circle into a group
x save a diagram with nothing in it
x save a diagram with one circle in it
x save a diagram with one circle and one rectangular in it
x load a diagram with nothing in it
x load a diagram with one circle in it
x load a diagram with one circle and one rectangular in it