1 Tests behavior under a restored context.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
5 PASS successfullyParsed is true
8 Test losing a context and inability to restore it.
10 PASS gl.isContextLost() is false
11 PASS gl.getError() is gl.NO_ERROR
12 PASS shouldBe 255,10,20
13 PASS gl.getError() is gl.NO_ERROR
15 PASS gl.isContextLost() is true
16 PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
17 PASS gl.getError() is gl.NO_ERROR
18 PASS gl.blendFunc(gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP) was expected value: NO_ERROR.
19 PASS contextLostEventFired is false
21 PASS contextLostEventFired is false
22 PASS gl.isContextLost() is true
23 PASS gl.getError() is gl.NO_ERROR
25 PASS extension.restoreContext() was expected value: INVALID_OPERATION.
27 Test losing and restoring a context.
29 PASS gl.isContextLost() is false
30 PASS gl.getError() is gl.NO_ERROR
31 PASS shouldBe 255,10,20
32 PASS gl.getError() is gl.NO_ERROR
34 PASS gl.isContextLost() is true
35 PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
36 PASS gl.getError() is gl.NO_ERROR
37 PASS gl.blendFunc(gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP) was expected value: NO_ERROR.
38 PASS contextLostEventFired is false
40 PASS contextLostEventFired is false
41 PASS gl.isContextLost() is true
42 PASS gl.getError() is gl.NO_ERROR
44 PASS extension.restoreContext() was expected value: NO_ERROR.
45 PASS gl.isContextLost() is true
46 PASS gl.getError() is gl.NO_ERROR
47 PASS gl.blendFunc(gl.TEXTURE_2D, gl.TEXTURE_CUBE_MAP) was expected value: NO_ERROR.
49 PASS contextRestoredEventFired is false
50 PASS gl.isContextLost() is false
51 PASS gl.getError() is gl.NO_ERROR
52 PASS gl.bindTexture(gl.TEXTURE_2D, texture) was expected value: INVALID_OPERATION.
53 PASS gl.useProgram(program) was expected value: INVALID_OPERATION.
54 PASS gl.bindBuffer(gl.ARRAY_BUFFER, bufferObjects[0]) was expected value: INVALID_OPERATION.
55 PASS shouldBe 255,10,20
56 PASS gl.getError() is gl.NO_ERROR
57 PASS gl.bindTexture(gl.TEXTURE_2D, texture) was expected value: NO_ERROR.
58 PASS gl.useProgram(program) was expected value: NO_ERROR.
59 PASS gl.bindBuffer(gl.ARRAY_BUFFER, bufferObjects[0]) was expected value: NO_ERROR.
61 PASS successfullyParsed is true