|
@@ -167,4 +167,48 @@ describe('LayoutTreeParser', () => {
|
167
|
167
|
]
|
168
|
168
|
});
|
169
|
169
|
});
|
|
170
|
+
|
|
171
|
+ it('parses side menu right', () => {
|
|
172
|
+ expect(uut.parseFromSimpleJSON(SimpleLayouts.singleWithRightSideMenu))
|
|
173
|
+ .toEqual({
|
|
174
|
+ type: 'SideMenuRoot',
|
|
175
|
+ id: 'SideMenuRoot+UNIQUE_ID',
|
|
176
|
+ children: [
|
|
177
|
+ {
|
|
178
|
+ type: 'SideMenuCenter',
|
|
179
|
+ id: 'SideMenuCenter+UNIQUE_ID',
|
|
180
|
+ children: [
|
|
181
|
+ {
|
|
182
|
+ type: 'ContainerStack',
|
|
183
|
+ id: 'ContainerStack+UNIQUE_ID',
|
|
184
|
+ children: [
|
|
185
|
+ {
|
|
186
|
+ type: 'Container',
|
|
187
|
+ id: 'Container+UNIQUE_ID',
|
|
188
|
+ data: {
|
|
189
|
+ name: 'com.example.MyScreen'
|
|
190
|
+ },
|
|
191
|
+ children: []
|
|
192
|
+ }
|
|
193
|
+ ]
|
|
194
|
+ }
|
|
195
|
+ ]
|
|
196
|
+ },
|
|
197
|
+ {
|
|
198
|
+ type: 'SideMenuRight',
|
|
199
|
+ id: 'SideMenuRight+UNIQUE_ID',
|
|
200
|
+ children: [
|
|
201
|
+ {
|
|
202
|
+ type: 'Container',
|
|
203
|
+ id: 'Container+UNIQUE_ID',
|
|
204
|
+ data: {
|
|
205
|
+ name: 'com.example.SideMenu'
|
|
206
|
+ },
|
|
207
|
+ children: []
|
|
208
|
+ }
|
|
209
|
+ ]
|
|
210
|
+ }
|
|
211
|
+ ]
|
|
212
|
+ });
|
|
213
|
+ });
|
170
|
214
|
});
|