OLD | NEW |
| (Empty) |
1 Tests behavior under a restored context. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 PASS successfullyParsed is true | |
6 | |
7 TEST COMPLETE | |
8 Test losing a context and inability to restore it. | |
9 Test valid context | |
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 | |
14 | |
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_ERR
OR. | |
19 PASS contextLostEventFired is false | |
20 Test lost context | |
21 PASS contextLostEventFired is false | |
22 PASS gl.isContextLost() is true | |
23 PASS gl.getError() is gl.NO_ERROR | |
24 | |
25 PASS extension.restoreContext() was expected value: INVALID_OPERATION. | |
26 | |
27 Test losing and restoring a context. | |
28 Test valid 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 | |
33 | |
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_ERR
OR. | |
38 PASS contextLostEventFired is false | |
39 Test lost context | |
40 PASS contextLostEventFired is false | |
41 PASS gl.isContextLost() is true | |
42 PASS gl.getError() is gl.NO_ERROR | |
43 | |
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_ERR
OR. | |
48 Test restored context | |
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_OPERATIO
N. | |
53 PASS gl.useProgram(program) was expected value: INVALID_OPERATION. | |
54 PASS gl.bindBuffer(gl.ARRAY_BUFFER, bufferObjects[0]) was expected value: INVALI
D_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_ERR
OR. | |
60 | |
61 PASS successfullyParsed is true | |
62 | |
63 TEST COMPLETE | |
64 | |
OLD | NEW |