| This test runs the WebGL Test listed below in an iframe and reports PASS or FAIL. |
| |
| Test: ../../resources/webgl_test_files/conformance/context/context-lost-restored.html |
| [ 1: PASS ] gl.isContextLost() is false |
| [ 2: PASS ] gl.getError() is gl.NO_ERROR |
| [ 3: PASS ] shouldBe 255,10,20 |
| [ 4: PASS ] gl.getError() is gl.NO_ERROR |
| [ 5: PASS ] gl.isContextLost() is true |
| [ 6: PASS ] gl.getError() is gl.CONTEXT_LOST_WEBGL |
| [ 7: PASS ] gl.getError() is gl.NO_ERROR |
| [ 8: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.blendFunc(gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP) |
| [ 9: PASS ] contextLostEventFired is false |
| [ 10: PASS ] contextLostEventFired is false |
| [ 11: PASS ] gl.isContextLost() is true |
| [ 12: PASS ] gl.getError() is gl.NO_ERROR |
| [ 13: PASS ] getError was expected value: INVALID_OPERATION : after evaluating: WEBGL_lose_context.restoreContext() |
| [ 14: PASS ] gl.isContextLost() is false |
| [ 15: PASS ] gl.getError() is gl.NO_ERROR |
| [ 16: PASS ] shouldBe 255,10,20 |
| [ 17: PASS ] gl.getError() is gl.NO_ERROR |
| [ 18: PASS ] gl.isContextLost() is true |
| [ 19: PASS ] gl.getError() is gl.CONTEXT_LOST_WEBGL |
| [ 20: PASS ] gl.getError() is gl.NO_ERROR |
| [ 21: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.blendFunc(gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP) |
| [ 22: PASS ] contextLostEventFired is false |
| [ 23: PASS ] contextLostEventFired is false |
| [ 24: PASS ] gl.isContextLost() is true |
| [ 25: PASS ] gl.getError() is gl.NO_ERROR |
| [ 26: PASS ] getError was expected value: NO_ERROR : after evaluating: WEBGL_lose_context.restoreContext() |
| [ 27: PASS ] getError was expected value: NO_ERROR : after evaluating: WEBGL_lose_context.restoreContext() |
| [ 28: PASS ] gl.isContextLost() is true |
| [ 29: PASS ] gl.getError() is gl.NO_ERROR |
| [ 30: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.blendFunc(gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP) |
| [ 31: PASS ] contextRestoredEventFired is false |
| [ 32: PASS ] gl.isContextLost() is false |
| [ 33: PASS ] gl.getError() is gl.NO_ERROR |
| [ 34: PASS ] getError was expected value: INVALID_OPERATION : after evaluating: gl.bindTexture(gl.TEXTURE_2D, texture) |
| [ 35: PASS ] getError was expected value: INVALID_OPERATION : after evaluating: gl.useProgram(program) |
| [ 36: PASS ] getError was expected value: INVALID_OPERATION : after evaluating: gl.bindBuffer(gl.ARRAY_BUFFER, bufferObjects[0]) |
| [ 37: PASS ] shouldBe 255,10,20 |
| [ 38: PASS ] gl.getError() is gl.NO_ERROR |
| [ 39: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.bindTexture(gl.TEXTURE_2D, texture) |
| [ 40: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.useProgram(program) |
| [ 41: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.bindBuffer(gl.ARRAY_BUFFER, bufferObjects[0]) |
| [ 42: FAIL ] getError expected: INVALID_ENUM. Was NO_ERROR : after evaluating: gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.FLOAT, null) |
| [ 43: PASS ] newExtension != null is true |
| [ 44: FAIL ] newExtension.webglTestProperty === undefined should be true. Was false. |
| [ 45: PASS ] getError was expected value: NO_ERROR : after evaluating: gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.FLOAT, null) |
| [ 46: FAIL ] OES_vertex_array_object.createVertexArrayOES() should be null. Was [object WebGLVertexArrayObjectOES]. |
| [ 47: PASS ] newExtension != null is true |
| [ 48: FAIL ] newExtension.webglTestProperty === undefined should be true. Was false. |
| [ 49: PASS ] OES_vertex_array_object.createVertexArrayOES() != null is true |
| [ 50: FAIL ] old_OES_vertex_array_object.createVertexArrayOES() == null should be true. Was false. |
| [ 51: PASS ] newExtension != null is true |
| [ 52: PASS ] newExtension.webglTestProperty === true is true |
| [ 53: PASS ] successfullyParsed is true |
| [ FAIL ] 5 failures reported |
| |