MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / testAction

Function testAction

apps/automated/src/ui/switch/switch-tests.ts:30–32  ·  view source on GitHub ↗
(views: Array<View>)

Source from the content-addressed store, hash-verified

28 var mySwitch = new Switch();
29
30 function testAction(views: Array<View>) {
31 TKUnit.assertEqual(getNativeValue(mySwitch), false, 'Default native switch.checked');
32 }
33
34 helper.buildUIAndRunTest(mySwitch, testAction);
35}

Callers

nothing calls this directly

Calls 8

setMethod · 0.95
assertMethod · 0.80
bindMethod · 0.80
getNativeValueFunction · 0.70
setNativeValueFunction · 0.70
isEqualMethod · 0.65
onMethod · 0.65
offMethod · 0.65

Tested by

no test coverage detected