 = testCases[ii].pname;
        var param = testCases[ii].param;
        var expectedError = testCases[ii].expectedError;
        if (param == null) {
            wtu.shouldGenerateGLError(gl, expectedError, "gl.getSamplerParameter(s, " + pname + ")");
        } else {
            wtu.shouldGenerateGLError(gl, gl.NO_ERROR, "gl.getSamplerParameter(s, " + pname + ")");
        }
        wtu.shouldGenerateGLError(gl, expectedError, "gl.samplerParameteri(s, " + pname + ", " + param + ")");
        wtu.shouldGen