v1
- by epreston 8/13/202300
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
let r = 0

function _method(a, b) {
    return a + b;
}

function method(a, b) {
    return a + b;
}

let namespace = {}
namespace.method = method

function Test() {}
let instance = new Test()
instance.method = method


Test2.prototype.method = (a, b) => {
        return a + b;
}

function Test2() {
}

let proto = new Test2()

class Test3 {
    method(a, b) {
         return a + b;
    }
}

let c = new Test3()
delete caserun single casemove downdrag and drop case


ready




        r += _method(1, 2)
delete caserun single casemove upmove downdrag and drop case


ready




        r += method(1, 2)
delete caserun single casemove upmove downdrag and drop case


ready




        r += namespace.method(1, 2)
delete caserun single casemove upmove downdrag and drop case


ready




        r += instance.method(1, 2)
delete caserun single casemove upmove downdrag and drop case


ready




        r += proto.method(1, 2)
delete caserun single casemove updrag and drop case


ready




        r += c.method(1, 2)
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN