ShouldBe(gl, gl.NO_ERROR);
    }

    debug("Checking valid pname and param for samplerParameterf");
    testCases = [
      { pname: gl.TEXTURE_MIN_LOD,  param: -500 },
      { pname: gl.TEXTURE_MIN_LOD,  param: 0 },
      { pname: gl.TEXTURE_MIN_LOD,  param: 10.0 },
      { pname: gl.TEXTURE_MAX_LOD,  param: 500 },
      { pname: gl.TEXTURE_MAX_LOD,  param: 0 },
      { pname: gl.TEXTURE_MAX_LOD,  param: 10.0 },
    ];

    for (var ii = 0; ii < testCases.length; ++ii) {
        var pname = testCases[ii].