blob: dd2e3f1e84e5389a3778136f35cc05208a91197c [file] [log] [blame]
This test runs the WebGL Test listed below in an iframe and reports PASS or FAIL.
Test: ../../resources/webgl_test_files/conformance/extensions/ext-sRGB.html
[ 1: PASS ] context exists
[ 2: PASS ] not able to create invalid format: ext.SRGB_EXT
[ 3: PASS ] not able to create invalid format: ext.SRGB_ALPHA_EXT
[ 4: PASS ] not able to create invalid format: ext.SRGB8_ALPHA8_EXT
[ 5: PASS ] not able to create invalid format: ext.SRGB8_ALPHA8_EXT
[ 6: PASS ] not able to create invalid format: ext.SRGB_EXT
[ 7: PASS ] not able to create invalid format: ext.SRGB_ALPHA_EXT
[ 8: PASS ] Successfully enabled EXT_sRGB extension
[ 9: PASS ] EXT_sRGB listed as supported and getExtension succeeded
[ 10: PASS ] Value of SRGB_EXT was expected value: 35904
[ 11: PASS ] Value of SRGB_ALPHA_EXT was expected value: 35906
[ 12: PASS ] Value of SRGB8_ALPHA8_EXT was expected value: 35907
[ 13: PASS ] Value of FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT was expected value: 33296
[ 14: PASS ] getError was expected value: NO_ERROR : was able to create type ext.SRGB_EXT
[ 15: PASS ] getError was expected value: NO_ERROR : was able to create type ext.SRGB_ALPHA_EXT
[ 16: PASS ] not able to create invalid format: ext.SRGB8_ALPHA8_EXT
[ 17: PASS ] getError was expected value: NO_ERROR : was able to create type ext.SRGB8_ALPHA8_EXT
[ 18: PASS ] not able to create invalid format: ext.SRGB_EXT
[ 19: PASS ] not able to create invalid format: ext.SRGB_ALPHA_EXT
[ 20: PASS ] should be 0,0,0,255
[ 21: PASS ] should be 13,13,13,255
[ 22: PASS ] should be 54,54,54,255
[ 23: PASS ] should be 133,133,133,255
[ 24: PASS ] should be 255,255,255,255
[ 25: PASS ] getError was expected value: NO_ERROR :
[ 26: PASS ] gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, ext.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT) is ext.SRGB_EXT
[ 27: PASS ] gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT
[ 28: PASS ] getError was expected value: INVALID_FRAMEBUFFER_OPERATION :
[ 29: PASS ] getError was expected value: NO_ERROR :
[ 30: PASS ] gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, ext.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT) is ext.SRGB_EXT
[ 31: PASS ] gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE
[ 32: PASS ] getError was expected value: NO_ERROR :
[ 33: PASS ] should be 0,0,0,255
[ 34: PASS ] getError was expected value: NO_ERROR :
[ 35: PASS ] should be 63,63,63,255
[ 36: PASS ] getError was expected value: NO_ERROR :
[ 37: PASS ] should be 127,127,127,255
[ 38: PASS ] getError was expected value: NO_ERROR :
[ 39: PASS ] should be 191,191,191,255
[ 40: PASS ] getError was expected value: NO_ERROR :
[ 41: PASS ] should be 255,255,255,255
[ 42: PASS ] getError was expected value: NO_ERROR :
[ 43: PASS ] getError was expected value: NO_ERROR :
[ 44: PASS ] gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, ext.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT) is ext.SRGB_EXT
[ 45: PASS ] gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE
[ 46: PASS ] should be 0,0,0,255
[ 47: PASS ] should be 63,63,63,255
[ 48: PASS ] should be 127,127,127,255
[ 49: PASS ] should be 191,191,191,255
[ 50: PASS ] should be 255,255,255,255
[ 51: PASS ] getError was expected value: NO_ERROR :
[ 52: PASS ] getError was expected value: INVALID_OPERATION :
[ 53: FAIL ] Image could not be loaded
[ 54: PASS ] successfullyParsed is true
[ FAIL ] 1 failures reported