MCPcopy Create free account
hub / github.com/NativeScript/android / createObjects

Function createObjects

test-app/app/src/main/assets/app/tests/testGC.js:46–57  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

44 it("test1", function () {
45
46 function createObjects(name) {
47 var c1 = new com.tns.tests.Class1();
48
49 var cb1 = new com.tns.tests.Class1.Callback1(name, {
50 getMessage: function() {
51 var msg = c1.getMessage();
52 return msg;
53 }
54 });
55
56 return com.tns.tests.Class1.Class2.printMessageWithDelay(cb1, 5 * 1000);
57 }
58
59 expect(createObjects("Callback5")).toBe(true);
60 expect(createObjects("Callback26")).toBe(true);

Callers 1

testGC.jsFile · 0.85

Calls 3

getMessageMethod · 0.95
printMessageWithDelayMethod · 0.80
getMessageMethod · 0.65

Tested by

no test coverage detected