e {
    testPassed("WebGL context exists");

    runBindingTest();
    runObjectTest();
    runParameterTest();
    wtu.glErrorShouldBe(gl, gl.NO_ERROR, "there should be no errors");
}

function enumToString(value) {
    return wtu.glEnumToString(gl, value);
}

function runBindingTest() {
    debug("Testing binding enum");

    shouldBe("gl.SAMPLER_BINDING", "0x8919");

    // Default value is null
    shouldBeNull("gl.getParameter(gl.SAMPLER_BINDING)");
    wtu.glErrorShouldBe(gl, gl.NO_ERROR, "SAMPLER_BIN