(args: ShownModallyData)
| 2 | import * as TKUnit from '../../tk-unit'; |
| 3 | |
| 4 | export function onShownModally(args: ShownModallyData) { |
| 5 | const tabView = <TabView>args.object; |
| 6 | TKUnit.assertNotNull(tabView); |
| 7 | if (args.context) { |
| 8 | args.context.shownModally = true; |
| 9 | } |
| 10 | |
| 11 | const hostFrame = Frame._stack()[0]; |
| 12 | TKUnit.assertNotNull(hostFrame, 'Host frame should not be null'); |
| 13 | TKUnit.assertEqual(hostFrame.currentPage.modal, tabView, 'hostFrame.currentPage.modal should be equal to the tabView instance on tabView.shownModally event handler.'); |
| 14 | |
| 15 | // shownModally raised after page.NavigatedTo on iOS |
| 16 | if (__APPLE__) { |
| 17 | args.closeCallback('return value'); |
| 18 | } |
| 19 | } |
nothing calls this directly
no test coverage detected