(views: Array<View>)
| 4 | |
| 5 | export function test_event_LayoutChanged_GetActualSize() { |
| 6 | const test = function (views: Array<View>) { |
| 7 | let buttonLayoutChanged = false; |
| 8 | |
| 9 | views[1].on(View.layoutChangedEvent, (data) => { |
| 10 | buttonLayoutChanged = true; |
| 11 | }); |
| 12 | |
| 13 | TKUnit.waitUntilReady(() => buttonLayoutChanged, 5); |
| 14 | TKUnit.assert(views[1].getActualSize().height > 0); |
| 15 | TKUnit.assert(views[1].getActualSize().width > 0); |
| 16 | }; |
| 17 | |
| 18 | helper.do_PageTest_WithStackLayout_AndButton(test); |
| 19 | } |
nothing calls this directly
no test coverage detected