| This test runs the WebGL Test listed below in an iframe and reports PASS or FAIL. |
| |
| Test: ../../resources/webgl_test_files/conformance/buffers/buffer-data-and-buffer-sub-data.html |
| [ 1: PASS ] WebGL context exists |
| [ 2: PASS ] [object WebGLBuffer] is non-null. |
| [ 3: PASS ] getError was expected value: INVALID_OPERATION : no buffer bound |
| [ 4: PASS ] getError was expected value: NO_ERROR : |
| [ 5: PASS ] getError was expected value: INVALID_VALUE : calling bufferData when buffer size is negative should generate INVALID_VALUE |
| [ 6: PASS ] getError was expected value: INVALID_VALUE : calling bufferData when BufferDataSource is null should generate INVALID_VALUE |
| [ 7: PASS ] getError was expected value: INVALID_VALUE : calling bufferData when BufferDataSource is undefined should generate INVALID_VALUE |
| [ 8: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : Passing 0 to bufferData |
| [ 9: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 10: PASS ] getError was expected value: NO_ERROR : Passing 4 to bufferData |
| [ 11: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 4 |
| [ 12: PASS ] getError was expected value: NO_ERROR : Passing 5.1 to bufferData |
| [ 13: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 5 |
| [ 14: PASS ] getError was expected value: NO_ERROR : Passing 5.8 to bufferData |
| [ 15: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 5 |
| [ 16: PASS ] getError was expected value: NO_ERROR : Passing 5.5 to bufferData |
| [ 17: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 5 |
| [ 18: PASS ] getError was expected value: NO_ERROR : Passing 4 to bufferData |
| [ 19: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 4 |
| [ 20: PASS ] getError was expected value: NO_ERROR : Passing 5.1 to bufferData |
| [ 21: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 5 |
| [ 22: PASS ] getError was expected value: NO_ERROR : Passing 5.8 to bufferData |
| [ 23: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 5 |
| [ 24: PASS ] getError was expected value: NO_ERROR : Passing 5.5 to bufferData |
| [ 25: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 5 |
| [ 26: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : Passing 0 to bufferData |
| [ 27: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 28: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : Passing 42,64 to bufferData |
| [ 29: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 30: PASS ] getError was expected value: NO_ERROR : Passing 42 to bufferData |
| [ 31: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 42 |
| [ 32: PASS ] getError was expected value: NO_ERROR : Passing 42 to bufferData |
| [ 33: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 42 |
| [ 34: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : Passing 42,64 to bufferData |
| [ 35: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 36: PASS ] getError was expected value: NO_ERROR : Passing [object ArrayBuffer] to bufferData |
| [ 37: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 38: PASS ] getError was expected value: NO_ERROR : Passing [object ArrayBuffer] to bufferData |
| [ 39: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 4 |
| [ 40: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : Passing WebGL Rocks! to bufferData |
| [ 41: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 42: FAIL ] getError expected: NO_ERROR. Was INVALID_VALUE : Passing [object Object] to bufferData |
| [ 43: PASS ] gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is 0 |
| [ 44: PASS ] getError was expected value: INVALID_VALUE : Calling bufferSubData before bufferData should fail |
| [ 45: PASS ] getError was expected value: NO_ERROR : |
| [ 46: PASS ] getError was expected value: INVALID_VALUE : calling bufferSubData with ArrayBuffer when offset is negative should INVALID_VALUE |
| [ 47: PASS ] getError was expected value: INVALID_VALUE : buffer overflow |
| [ 48: PASS ] getError was expected value: INVALID_VALUE : calling bufferSubData with ArrayBufferView when offset is negative should generate INVALID_VALUE |
| [ 49: PASS ] getError was expected value: NO_ERROR : calling bufferSubData with ArrayBuffer should succeed |
| [ 50: PASS ] getError was expected value: NO_ERROR : calling bufferSubData with zero-sized ArrayBufferView should succeed |
| [ 51: PASS ] gl.bufferSubData(gl.ARRAY_BUFFER, 0, 42); threw exception TypeError: Type error. |
| [ 52: PASS ] gl.bufferSubData(gl.ARRAY_BUFFER, 0, 5.5); threw exception TypeError: Type error. |
| [ 53: PASS ] gl.bufferSubData(gl.ARRAY_BUFFER, 0, "5.5"); threw exception TypeError: Type error. |
| [ 54: PASS ] gl.bufferSubData(gl.ARRAY_BUFFER, 0, [4]); threw exception TypeError: Type error. |
| [ 55: PASS ] gl.bufferSubData(gl.ARRAY_BUFFER, 0, { mynumber: 42}); threw exception TypeError: Type error. |
| [ 56: FAIL ] gl.bufferSubData(gl.ARRAY_BUFFER, 10, null) should throw an exception. Was undefined. |
| [ 57: FAIL ] gl.bufferSubData(gl.ARRAY_BUFFER, 10, undefined) should throw an exception. Was undefined. |
| [ 58: PASS ] getError was expected value: NO_ERROR : should generate no GL error |
| [ 59: PASS ] successfullyParsed is true |
| [ FAIL ] 8 failures reported |
| |