(child: View)
| 7 | // traverse the visual tree and verify the hierarchy |
| 8 | let counter = 0; |
| 9 | const callback = function (child: View): boolean { |
| 10 | TKUnit.assert(child === views[counter]); |
| 11 | counter++; |
| 12 | |
| 13 | return true; |
| 14 | }; |
| 15 | |
| 16 | eachDescendant(<any>Frame.topmost(), callback); |
| 17 | // Descendants: page, actionBar, button |