MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / handler

Function handler

apps/automated/src/ui/image/image-tests.ts:75–86  ·  view source on GitHub ↗
(data: PropertyChangeData)

Source from the content-addressed store, hash-verified

73 image.src = null;
74
75 let handler = function (data: PropertyChangeData) {
76 image.off(IMAGE_LOADED_EVENT, handler);
77
78 try {
79 let imageSourceAvailable = __APPLE__ ? !!image.imageSource : true;
80 TKUnit.assertFalse(image.isLoading, 'Image.isLoading should be false.');
81 TKUnit.assertTrue(imageSourceAvailable, 'imageSource should be set.');
82 done(null);
83 } catch (e) {
84 done(e);
85 }
86 };
87
88 let page = helper.getCurrentPage();
89 page.content = image;

Callers 6

emitEventMethod · 0.50
emitEventMethod · 0.50
whenSelectedFunction · 0.50
intHandlerFunction · 0.50
stringHandlerFunction · 0.50
booleanHandlerFunction · 0.50

Calls 1

offMethod · 0.65

Tested by

no test coverage detected