(title, innerPage)
| 83 | }; |
| 84 | |
| 85 | const parentPage = (title, innerPage) => { |
| 86 | const parentPage = new Page(); |
| 87 | parentPage['tag'] = title; |
| 88 | |
| 89 | const stack = new StackLayout(); |
| 90 | innerFrame = new frame.Frame(); |
| 91 | innerFrame.navigate({ create: () => innerPage }); |
| 92 | stack.addChild(innerFrame); |
| 93 | parentPage.content = stack; |
| 94 | |
| 95 | return parentPage; |
| 96 | }; |
| 97 | |
| 98 | const back = (pages) => Frame.topmost().goBack(Frame.topmost().backStack[Frame.topmost().backStack.length - pages]); |
| 99 | const currentPageMustBe = (tag) => TKUnit.assertEqual(Frame.topmost().currentPage['tag'], tag, 'Expected current page to be ' + tag + ' it was ' + Frame.topmost().currentPage['tag'] + ' instead.'); |
no test coverage detected