summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tc_displayable.py12
-rw-r--r--test/tc_ui.py2
2 files changed, 7 insertions, 7 deletions
diff --git a/test/tc_displayable.py b/test/tc_displayable.py
index 3acf338b..d7466809 100644
--- a/test/tc_displayable.py
+++ b/test/tc_displayable.py
@@ -74,7 +74,7 @@ class TestDisplayableContainer(unittest.TestCase):
 
 		self.disp = Displayable(**self.initdict)
 		self.disc = DisplayableContainer(**self.initdict)
-		self.disc.add_obj(self.disp)
+		self.disc.add_child(self.disp)
 
 		hei, wid = (100, 100)
 		self.env.termsize = (hei, wid)
@@ -103,20 +103,20 @@ class TestDisplayableContainer(unittest.TestCase):
 	def test_focused_object(self):
 		d1 = Displayable(**self.initdict)
 		d2 = DisplayableContainer(**self.initdict)
-		d2.add_obj(*[Displayable(**self.initdict) for x in range(5)])
+		d2.add_child(*[Displayable(**self.initdict) for x in range(5)])
 		d3 = DisplayableContainer(**self.initdict)
-		d3.add_obj(*[Displayable(**self.initdict) for x in range(5)])
+		d3.add_child(*[Displayable(**self.initdict) for x in range(5)])
 
-		self.disc.add_obj(d1, d2, d3)
+		self.disc.add_child(d1, d2, d3)
 
 		d3.container[3].focused = True
 
-		self.assertEqual(self.disc.get_focused_obj(), d3.container[3])
+		self.assertEqual(self.disc._get_focused_obj(), d3.container[3])
 
 		d3.container[3].focused = False
 		d2.container[0].focused = True
 
-		self.assertEqual(self.disc.get_focused_obj(), d2.container[0])
+		self.assertEqual(self.disc._get_focused_obj(), d2.container[0])
 
 if __name__ == '__main__':
 	unittest.main()
diff --git a/test/tc_ui.py b/test/tc_ui.py
index f509ff36..eb503c5d 100644
--- a/test/tc_ui.py
+++ b/test/tc_ui.py
@@ -17,7 +17,7 @@ class Test(unittest.TestCase):
 
 		def fakesetup():
 			self.ui.widget = Fake()
-			self.ui.add_obj(self.ui.widget)
+			self.ui.add_child(self.ui.widget)
 		self.ui.setup = fakesetup
 
 		self.ui.initialize()
bx/062write-byte.subx?h=main&id=6a7eaa81eea991cd459f295c2dd3882c8528187c'>^
83822d63 ^




af5797ee ^

dd9ba09a ^
83822d63 ^
af5797ee ^
ca0a598c ^
af5797ee ^
83822d63 ^
768093cd ^
83822d63 ^
af5797ee ^
83822d63 ^





af5797ee ^
83822d63 ^




89bcb567 ^
8b9dd2d1 ^
83822d63 ^

aff782c4 ^
83822d63 ^
dd9ba09a ^
af5797ee ^
aff782c4 ^
af5797ee ^
cf02c20b ^
83822d63 ^
af5797ee ^
83822d63 ^













dd9ba09a ^
83822d63 ^








cf02c20b ^
83822d63 ^










8b9dd2d1 ^
83822d63 ^































ddd2e989 ^
83822d63 ^

ddd2e989 ^

83822d63 ^
ddd2e989 ^
83822d63 ^




8b9dd2d1 ^












































ddd2e989 ^
8b9dd2d1 ^

ddd2e989 ^

8b9dd2d1 ^
ddd2e989 ^
8b9dd2d1 ^




83822d63 ^
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211