(gl, gl.NO_ERROR, "should be no more errors");
    }
}

function checkEnums() {
    debug("");
    debug("Check enums");
    shouldBe("ext.MIRROR_CLAMP_TO_EDGE_EXT", "0x8743");
}

function checkQueries() {
    debug("");
    debug("Check texture and sampler state updates");

    const tex = gl.createTexture();
    gl.bindTexture(gl.TEXTURE_2D, tex);

    for (const pname of pnames) {
        gl.texParameteri(gl.TEXTURE_2D, gl[pname], ext.MIRROR_CLAMP_TO_EDGE_EXT);
        wtu.glErrorShouldBe(gl, gl.NO_ERROR