1 Tests behavior under a lost context
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
5 PASS successfullyParsed is true
9 PASS gl.isContextLost() is false
10 PASS gl.getError() is gl.NO_ERROR
11 PASS gl.enable(gl.BLEND) was expected value: NO_ERROR.
12 PASS gl.isBuffer(buffer) is true
13 PASS gl.isEnabled(gl.BLEND) is true
14 PASS gl.isFramebuffer(framebuffer) is true
15 PASS gl.isProgram(program) is true
16 PASS gl.isRenderbuffer(renderbuffer) is true
17 PASS gl.isShader(shader) is true
18 PASS gl.isTexture(texture) is true
23 PASS gl.isContextLost() is true
24 PASS gl.getError() is gl.CONTEXT_LOST_WEBGL
25 PASS gl.getError() is gl.NO_ERROR
26 PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_UNSUPPORTED
27 PASS gl.getAttribLocation(program, 'u_modelViewProjMatrix') is -1
28 PASS gl.getVertexAttribOffset(0, gl.VERTEX_ATTRIB_ARRAY_POINTER) is 0
29 PASS extension.loseContext() was expected value: INVALID_OPERATION.
30 PASS gl.activeTexture(gl.TEXTURE0) was expected value: NO_ERROR.
31 PASS gl.attachShader(program, shader) was expected value: NO_ERROR.
32 PASS gl.bindBuffer(gl.ARRAY_BUFFER, buffer) was expected value: NO_ERROR.
33 PASS gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer) was expected value: NO_ERROR.
34 PASS gl.bindRenderbuffer(gl.RENDERBUFFER, renderbuffer) was expected value: NO_ERROR.
35 PASS gl.bindTexture(gl.TEXTURE_2D, texture) was expected value: NO_ERROR.
36 PASS gl.blendColor(1.0, 1.0, 1.0, 1.0) was expected value: NO_ERROR.
37 PASS gl.blendEquation(gl.FUNC_ADD) was expected value: NO_ERROR.
38 PASS gl.blendEquationSeparate(gl.FUNC_ADD, gl.FUNC_ADD) was expected value: NO_ERROR.
39 PASS gl.blendFunc(gl.ONE, gl.ONE) was expected value: NO_ERROR.
40 PASS gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ONE, gl.ONE) was expected value: NO_ERROR.
41 PASS gl.bufferData(gl.ARRAY_BUFFER, 0, gl.STATIC_DRAW) was expected value: NO_ERROR.
42 PASS gl.bufferData(gl.ARRAY_BUFFER, arrayBufferView, gl.STATIC_DRAW) was expected value: NO_ERROR.
43 PASS gl.bufferData(gl.ARRAY_BUFFER, arrayBuffer, gl.STATIC_DRAW) was expected value: NO_ERROR.
44 PASS gl.bufferSubData(gl.ARRAY_BUFFRE, 0, arrayBufferView) was expected value: NO_ERROR.
45 PASS gl.bufferSubData(gl.ARRAY_BUFFRE, 0, arrayBuffer) was expected value: NO_ERROR.
46 PASS gl.clear(gl.COLOR_BUFFER_BIT) was expected value: NO_ERROR.
47 PASS gl.clearColor(1, 1, 1, 1) was expected value: NO_ERROR.
48 PASS gl.clearDepth(1) was expected value: NO_ERROR.
49 PASS gl.clearStencil(0) was expected value: NO_ERROR.
50 PASS gl.colorMask(1, 1, 1, 1) was expected value: NO_ERROR.
51 PASS gl.compileShader(shader) was expected value: NO_ERROR.
52 PASS gl.copyTexImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, 0, 0, 0) was expected value: NO_ERROR.
53 PASS gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 0, 0, 0, 0) was expected value: NO_ERROR.
54 PASS gl.cullFace(gl.FRONT) was expected value: NO_ERROR.
55 PASS gl.deleteBuffer(buffer) was expected value: NO_ERROR.
56 PASS gl.deleteFramebuffer(framebuffer) was expected value: NO_ERROR.
57 PASS gl.deleteProgram(program) was expected value: NO_ERROR.
58 PASS gl.deleteRenderbuffer(renderbuffer) was expected value: NO_ERROR.
59 PASS gl.deleteShader(shader) was expected value: NO_ERROR.
60 PASS gl.deleteTexture(texture) was expected value: NO_ERROR.
61 PASS gl.depthFunc(gl.NEVER) was expected value: NO_ERROR.
62 PASS gl.depthMask(0) was expected value: NO_ERROR.
63 PASS gl.depthRange(0, 1) was expected value: NO_ERROR.
64 PASS gl.detachShader(program, shader) was expected value: NO_ERROR.
65 PASS gl.disable(gl.BLEND) was expected value: NO_ERROR.
66 PASS gl.disableVertexAttribArray(0) was expected value: NO_ERROR.
67 PASS gl.drawArrays(gl.POINTS, 0, 0) was expected value: NO_ERROR.
68 PASS gl.drawElements(gl.POINTS, 0, gl.UNSIGNED_SHORT, 0) was expected value: NO_ERROR.
69 PASS gl.enable(gl.BLEND) was expected value: NO_ERROR.
70 PASS gl.enableVertexAttribArray(0) was expected value: NO_ERROR.
71 PASS gl.finish() was expected value: NO_ERROR.
72 PASS gl.flush() was expected value: NO_ERROR.
73 PASS gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.RENDERBUFFER, renderbuffer) was expected value: NO_ERROR.
74 PASS gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, 0) was expected value: NO_ERROR.
75 PASS gl.frontFace(gl.CW) was expected value: NO_ERROR.
76 PASS gl.generateMipmap(gl.TEXTURE_2D) was expected value: NO_ERROR.
77 PASS gl.hint(gl.GENERATE_MIPMAP_HINT, gl.FASTEST) was expected value: NO_ERROR.
78 PASS gl.lineWidth(0) was expected value: NO_ERROR.
79 PASS gl.linkProgram(program) was expected value: NO_ERROR.
80 PASS gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, 0) was expected value: NO_ERROR.
81 PASS gl.polygonOffset(0, 0) was expected value: NO_ERROR.
82 PASS gl.readPixels(0, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, arrayBufferView) was expected value: NO_ERROR.
83 PASS gl.renderbufferStorage(gl.RENDERBUFFER, gl.RGBA4, 0, 0) was expected value: NO_ERROR.
84 PASS gl.sampleCoverage(0, 0) was expected value: NO_ERROR.
85 PASS gl.scissor(0, 0, 0, 0) was expected value: NO_ERROR.
86 PASS gl.shaderSource(shader, '') was expected value: NO_ERROR.
87 PASS gl.stencilFunc(gl.NEVER, 0, 0) was expected value: NO_ERROR.
88 PASS gl.stencilFuncSeparate(gl.FRONT, gl.NEVER, 0, 0) was expected value: NO_ERROR.
89 PASS gl.stencilMask(0) was expected value: NO_ERROR.
90 PASS gl.stencilMaskSeparate(gl.FRONT, 0) was expected value: NO_ERROR.
91 PASS gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP) was expected value: NO_ERROR.
92 PASS gl.stencilOpSeparate(gl.FRONT, gl.KEEP, gl.KEEP, gl.KEEP) was expected value: NO_ERROR.
93 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, arrayBufferView) was expected value: NO_ERROR.
94 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, imageData) was expected value: NO_ERROR.
95 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image) was expected value: NO_ERROR.
96 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, canvas) was expected value: NO_ERROR.
97 PASS gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, video) was expected value: NO_ERROR.
98 PASS gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST) was expected value: NO_ERROR.
99 PASS gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST) was expected value: NO_ERROR.
100 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, arrayBufferView) was expected value: NO_ERROR.
101 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, imageData) was expected value: NO_ERROR.
102 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, image) was expected value: NO_ERROR.
103 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, canvas) was expected value: NO_ERROR.
104 PASS gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, gl.RGBA, gl.UNSIGNED_BYTE, video) was expected value: NO_ERROR.
105 PASS gl.uniform1f(uniformLocation, 0) was expected value: NO_ERROR.
106 PASS gl.uniform1fv(uniformLocation, float32array) was expected value: NO_ERROR.
107 PASS gl.uniform1fv(uniformLocation, [0]) was expected value: NO_ERROR.
108 PASS gl.uniform1i(uniformLocation, 0) was expected value: NO_ERROR.
109 PASS gl.uniform1iv(uniformLocation, int32array) was expected value: NO_ERROR.
110 PASS gl.uniform1iv(uniformLocation, [0]) was expected value: NO_ERROR.
111 PASS gl.uniform2f(uniformLocation, 0, 0) was expected value: NO_ERROR.
112 PASS gl.uniform2fv(uniformLocation, float32array) was expected value: NO_ERROR.
113 PASS gl.uniform2fv(uniformLocation, [0, 0]) was expected value: NO_ERROR.
114 PASS gl.uniform2i(uniformLocation, 0, 0) was expected value: NO_ERROR.
115 PASS gl.uniform2iv(uniformLocation, int32array) was expected value: NO_ERROR.
116 PASS gl.uniform2iv(uniformLocation, [0, 0]) was expected value: NO_ERROR.
117 PASS gl.uniform3f(uniformLocation, 0, 0, 0) was expected value: NO_ERROR.
118 PASS gl.uniform3fv(uniformLocation, float32array) was expected value: NO_ERROR.
119 PASS gl.uniform3fv(uniformLocation, [0, 0, 0]) was expected value: NO_ERROR.
120 PASS gl.uniform3i(uniformLocation, 0, 0, 0) was expected value: NO_ERROR.
121 PASS gl.uniform3iv(uniformLocation, int32array) was expected value: NO_ERROR.
122 PASS gl.uniform3iv(uniformLocation, [0, 0, 0]) was expected value: NO_ERROR.
123 PASS gl.uniform4f(uniformLocation, 0, 0, 0, 0) was expected value: NO_ERROR.
124 PASS gl.uniform4fv(uniformLocation, float32array) was expected value: NO_ERROR.
125 PASS gl.uniform4fv(uniformLocation, [0, 0, 0, 0]) was expected value: NO_ERROR.
126 PASS gl.uniform4i(uniformLocation, 0, 0, 0, 0) was expected value: NO_ERROR.
127 PASS gl.uniform4iv(uniformLocation, int32array) was expected value: NO_ERROR.
128 PASS gl.uniform4iv(uniformLocation, [0, 0, 0, 0]) was expected value: NO_ERROR.
129 PASS gl.uniformMatrix2fv(uniformLocation, false, float32array) was expected value: NO_ERROR.
130 PASS gl.uniformMatrix2fv(uniformLocation, false, [0, 0, 0, 0]) was expected value: NO_ERROR.
131 PASS gl.uniformMatrix3fv(uniformLocation, false, float32array) was expected value: NO_ERROR.
132 PASS gl.uniformMatrix3fv(uniformLocation, false, [0, 0, 0, 0, 0, 0, 0, 0, 0]) was expected value: NO_ERROR.
133 PASS gl.uniformMatrix4fv(uniformLocation, false, float32array) was expected value: NO_ERROR.
134 PASS gl.uniformMatrix4fv(uniformLocation, false, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) was expected value: NO_ERROR.
135 PASS gl.useProgram(program) was expected value: NO_ERROR.
136 PASS gl.validateProgram(program) was expected value: NO_ERROR.
137 PASS gl.vertexAttrib1f(0, 0) was expected value: NO_ERROR.
138 PASS gl.vertexAttrib1fv(0, float32array) was expected value: NO_ERROR.
139 PASS gl.vertexAttrib1fv(0, [0]) was expected value: NO_ERROR.
140 PASS gl.vertexAttrib2f(0, 0, 0) was expected value: NO_ERROR.
141 PASS gl.vertexAttrib2fv(0, float32array) was expected value: NO_ERROR.
142 PASS gl.vertexAttrib2fv(0, [0, 0]) was expected value: NO_ERROR.
143 PASS gl.vertexAttrib3f(0, 0, 0, 0) was expected value: NO_ERROR.
144 PASS gl.vertexAttrib3fv(0, float32array) was expected value: NO_ERROR.
145 PASS gl.vertexAttrib3fv(0, [0, 0, 0]) was expected value: NO_ERROR.
146 PASS gl.vertexAttrib4f(0, 0, 0, 0, 0) was expected value: NO_ERROR.
147 PASS gl.vertexAttrib4fv(0, float32array) was expected value: NO_ERROR.
148 PASS gl.vertexAttrib4fv(0, [0, 0, 0, 0]) was expected value: NO_ERROR.
149 PASS gl.vertexAttribPointer(0, 0, gl.FLOAT, false, 0, 0) was expected value: NO_ERROR.
150 PASS gl.viewport(0, 0, 0, 0) was expected value: NO_ERROR.
151 PASS gl.createBuffer() is null
152 PASS gl.createFramebuffer() is null
153 PASS gl.createProgram() is null
154 PASS gl.createRenderbuffer() is null
155 PASS gl.createShader(gl.GL_VERTEX_SHADER) is null
156 PASS gl.createTexture() is null
157 PASS gl.getActiveAttrib(program, 0) is null
158 PASS gl.getActiveUniform(program, 0) is null
159 PASS gl.getAttachedShaders(program) is null
160 PASS gl.getBufferParameter(gl.ARRAY_BUFFER, gl.BUFFER_SIZE) is null
161 PASS gl.getContextAttributes() is null
162 PASS gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME) is null
163 PASS gl.getParameter(gl.CURRENT_PROGRAM) is null
164 PASS gl.getProgramInfoLog(program) is null
165 PASS gl.getProgramParameter(program, gl.LINK_STATUS) is null
166 PASS gl.getRenderbufferParameter(gl.RENDERBUFFER, gl.RENDERBUFFER_WIDTH) is null
167 PASS gl.getShaderInfoLog(shader) is null
168 PASS gl.getShaderParameter(shader, gl.SHADER_TYPE) is null
169 PASS gl.getShaderSource(shader) is null
170 PASS gl.getTexParameter(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S) is null
171 PASS gl.getUniform(program, uniformLocation) is null
172 PASS gl.getUniformLocation(program, 'vPosition') is null
173 PASS gl.getVertexAttrib(0, gl.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING) is null
174 PASS gl.getSupportedExtensions() is null
175 PASS gl.getExtension('WEBGL_lose_context') is null
176 PASS gl.isBuffer(buffer) is false
177 PASS gl.isEnabled(gl.BLEND) is false
178 PASS gl.isFramebuffer(framebuffer) is false
179 PASS gl.isProgram(program) is false
180 PASS gl.isRenderbuffer(renderbuffer) is false
181 PASS gl.isShader(shader) is false
182 PASS gl.isTexture(texture) is false
183 PASS gl.getError() is gl.NO_ERROR
185 PASS successfullyParsed is true