u.glErrorShouldBe(gl, gl.NO_ERROR, "texture created and sampler configured");

    wtu.drawUnitQuad(gl);
    checkPixels();
}

function runTest() {
    if (!gl) {
        testFailed("context does not exist");
        return;
    }
    testPassed("context exists");

    runTestNoExtension();

    ext = gl.getExtension("EXT_texture_mirror_clamp_to_edge");
    wtu.runExtensionSupportedTest(gl, "EXT_texture_mirror_clamp_to_edge", ext !== null);

    if (ext !== null) {
        checkEnums();
        checkQueries