blob: 636ce9964a0967be7ae376f8e3dfdd3a5d0bbd73 [file] [log] [blame]
This test runs the WebGL Test listed below in an iframe and reports PASS or FAIL.
Test: ../../../resources/webgl_test_files/conformance2/textures/misc/texture-npot.html
[ 1: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 2: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : gl.texImage2D with NPOT texture with level > 0 should succeed
[ 3: PASS ] getError was expected value: NO_ERROR : gl.texImage2D with NPOT texture at level 0 should succeed
[ 4: FAIL ] getError expected: NO_ERROR. Was INVALID_OPERATION : gl.generateMipmap with NPOT texture should succeed
[ 5: FAIL ] NPOT texture with TEXTURE_WRAP set to REPEAT should draw at (0, 0) expected: 192,0,128,64 was 0,0,0,255
[ 6: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 7: FAIL ] NPOT texture with TEXTURE_MIN_FILTER not NEAREST or LINEAR should draw at (0, 0) expected: 192,0,128,64 was 0,0,0,255
[ 8: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 9: PASS ] NPOT texture with TEXTURE_MIN_FILTER set to LINEAR should draw.
[ 10: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : copyTexImage2D with NPOT texture with level > 0 should succeed.
[ 11: PASS ] getError was expected value: NO_ERROR : gl.texImage2D and gl.generateMipmap with POT texture at level 0 should succeed
[ 12: PASS ] POT texture with TEXTURE_MIN_FILTER set to LINEAR_MIPMAP_LINEAR should draw.
[ 13: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 14: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : gl.texImage2D with NPOT texture with level > 0 should succeed
[ 15: PASS ] getError was expected value: NO_ERROR : gl.texImage2D with NPOT texture at level 0 should succeed
[ 16: FAIL ] getError expected: NO_ERROR. Was INVALID_OPERATION : gl.generateMipmap with NPOT texture should succeed
[ 17: FAIL ] NPOT texture with TEXTURE_WRAP set to REPEAT should draw at (0, 0) expected: 192,0,128,255 was 0,0,0,255
[ 18: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 19: FAIL ] NPOT texture with TEXTURE_MIN_FILTER not NEAREST or LINEAR should draw at (0, 0) expected: 192,0,128,255 was 0,0,0,255
[ 20: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 21: PASS ] NPOT texture with TEXTURE_MIN_FILTER set to LINEAR should draw.
[ 22: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : copyTexImage2D with NPOT texture with level > 0 should succeed.
[ 23: PASS ] getError was expected value: NO_ERROR : gl.texImage2D and gl.generateMipmap with POT texture at level 0 should succeed
[ 24: PASS ] POT texture with TEXTURE_MIN_FILTER set to LINEAR_MIPMAP_LINEAR should draw.
[ 25: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 26: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : gl.texImage2D with NPOT texture with level > 0 should succeed
[ 27: PASS ] getError was expected value: NO_ERROR : gl.texImage2D with NPOT texture at level 0 should succeed
[ 28: FAIL ] getError expected: NO_ERROR. Was INVALID_OPERATION : gl.generateMipmap with NPOT texture should succeed
[ 29: FAIL ] NPOT texture with TEXTURE_WRAP set to REPEAT should draw at (0, 0) expected: 192,192,192,255 was 0,0,0,255
[ 30: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 31: FAIL ] NPOT texture with TEXTURE_MIN_FILTER not NEAREST or LINEAR should draw at (0, 0) expected: 192,192,192,255 was 0,0,0,255
[ 32: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 33: PASS ] NPOT texture with TEXTURE_MIN_FILTER set to LINEAR should draw.
[ 34: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : copyTexImage2D with NPOT texture with level > 0 should succeed.
[ 35: PASS ] getError was expected value: NO_ERROR : gl.texImage2D and gl.generateMipmap with POT texture at level 0 should succeed
[ 36: PASS ] POT texture with TEXTURE_MIN_FILTER set to LINEAR_MIPMAP_LINEAR should draw.
[ 37: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 38: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : gl.texImage2D with NPOT texture with level > 0 should succeed
[ 39: PASS ] getError was expected value: NO_ERROR : gl.texImage2D with NPOT texture at level 0 should succeed
[ 40: FAIL ] getError expected: NO_ERROR. Was INVALID_OPERATION : gl.generateMipmap with NPOT texture should succeed
[ 41: FAIL ] NPOT texture with TEXTURE_WRAP set to REPEAT should draw at (0, 0) expected: 0,0,0,64 was 0,0,0,255
[ 42: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 43: FAIL ] NPOT texture with TEXTURE_MIN_FILTER not NEAREST or LINEAR should draw at (0, 0) expected: 0,0,0,64 was 0,0,0,255
[ 44: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 45: PASS ] NPOT texture with TEXTURE_MIN_FILTER set to LINEAR should draw.
[ 46: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : copyTexImage2D with NPOT texture with level > 0 should succeed.
[ 47: PASS ] getError was expected value: NO_ERROR : gl.texImage2D and gl.generateMipmap with POT texture at level 0 should succeed
[ 48: PASS ] POT texture with TEXTURE_MIN_FILTER set to LINEAR_MIPMAP_LINEAR should draw.
[ 49: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 50: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : gl.texImage2D with NPOT texture with level > 0 should succeed
[ 51: PASS ] getError was expected value: NO_ERROR : gl.texImage2D with NPOT texture at level 0 should succeed
[ 52: FAIL ] getError expected: NO_ERROR. Was INVALID_OPERATION : gl.generateMipmap with NPOT texture should succeed
[ 53: FAIL ] NPOT texture with TEXTURE_WRAP set to REPEAT should draw at (0, 0) expected: 192,192,192,64 was 0,0,0,255
[ 54: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 55: FAIL ] NPOT texture with TEXTURE_MIN_FILTER not NEAREST or LINEAR should draw at (0, 0) expected: 192,192,192,64 was 0,0,0,255
[ 56: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 57: PASS ] NPOT texture with TEXTURE_MIN_FILTER set to LINEAR should draw.
[ 58: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : copyTexImage2D with NPOT texture with level > 0 should succeed.
[ 59: PASS ] getError was expected value: NO_ERROR : gl.texImage2D and gl.generateMipmap with POT texture at level 0 should succeed
[ 60: PASS ] POT texture with TEXTURE_MIN_FILTER set to LINEAR_MIPMAP_LINEAR should draw.
[ 61: PASS ] getError was expected value: NO_ERROR : Should be no errors from setup.
[ 62: PASS ] successfullyParsed is true
[ FAIL ] 25 failures reported