()
| 5 | import * as buttonModule from '@nativescript/core/ui/button'; |
| 6 | |
| 7 | export function createPage() { |
| 8 | var stackLayout = new stackLayoutModule.StackLayout(); |
| 9 | var label = new labelModule.Label(); |
| 10 | label.text = 'CONSOLE MODULE'; |
| 11 | var textView = new textViewModule.TextView(); |
| 12 | textView.text = 'Check out the console output.'; |
| 13 | stackLayout.addChild(label); |
| 14 | stackLayout.addChild(textView); |
| 15 | |
| 16 | var page = new pageModule.Page(); |
| 17 | page.on(pageModule.Page.loadedEvent, function () { |
| 18 | pageLoaded(); |
| 19 | }); |
| 20 | |
| 21 | page.content = stackLayout; |
| 22 | |
| 23 | return page; |
| 24 | } |
| 25 | |
| 26 | export function pageLoaded() { |
| 27 | console.log('### TEST START ###'); |
nothing calls this directly
no test coverage detected