Lines Matching refs:items
20 let items = container.getRootItems() in spec() variable
22 expect(items.count).to(equal(3)) in spec()
23 expect((items[0] as! DevMenuAction).label()).to(equal("action-3")) in spec()
24 expect((items[1] as! DevMenuAction).label()).to(equal("action-2")) in spec()
25 expect((items[2] as! DevMenuAction).label()).to(equal("action-1")) in spec()
35 let items = container.getAllItems() in spec() variable
37 expect(items.count).to(equal(3)) in spec()
38 expect(items[0] as? DevMenuAction).toNot(beNil()) in spec()
39 expect(items[1] as? DevMenuGroup).toNot(beNil()) in spec()
40 expect(items[2] as? DevMenuAction).toNot(beNil()) in spec()
50 let items = container.serializeItems() in spec() variable
52 expect(items.count).to(equal(2)) in spec()
53 expect(items[0]["type"] as? Int).to(equal(ItemType.action.rawValue)) in spec()
54 expect(items[0]["actionId"] as? String).to(equal("action-1")) in spec()
56 expect(items[1]["type"] as? Int).to(equal(ItemType.group.rawValue)) in spec()
58 let innerItem = (items[1]["items"] as! [[String: Any]])[0] in spec()