(views: Array<ViewModule.View>)
| 41 | // << img-create |
| 42 | |
| 43 | const testFunc = function (views: Array<ViewModule.View>) { |
| 44 | TKUnit.waitUntilReady(() => image.isLayoutValid); |
| 45 | const width = image.getMeasuredWidth(); |
| 46 | const height = image.getMeasuredHeight(); |
| 47 | |
| 48 | TKUnit.assert(width > 0, 'Width should be greater than 0.'); |
| 49 | TKUnit.assert(height > 0, 'Height should be greater than 0.'); |
| 50 | }; |
| 51 | |
| 52 | helper.buildUIAndRunTest(image, testFunc); |
| 53 | }; |
no test coverage detected