Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
109 lines (87 sloc) 2.11 KB
Top priority functions to test are functions that:
1. deal with array indexing
- may cause segfaults
- may read privileged data
- may write to process memory
2. read data from the OpenGL context
- require SOP checking
== List of methods ==
[Legend: + = test exists, - = no test]
== Methods that have tests ==
bufferData
+ with array
+ with bad args
bufferSubData
+ with array
+ with bad args
copyTexImage2D
+ normally
+ with bad args (bad dims, bad type, bad border, bad level)
copyTexSubImage2D
+ normally
+ with bad args (bad offset, bad dims, bad type, bad level)
drawArrays
+ with vertex arrays
+ with buffers
+ with bad args
drawElements
+ with vertex arrays
+ with buffers
+ with bad args (oob count & offset, oob indices)
getImageData
+ normal
+ with GL canvas that has a non-SOP texture uploaded
+ bad args (coords outside viewport, zero size)
readPixels
+ normal
+ with GL canvas that has a non-SOP texture uploaded
+ bad args (coords outside viewport, zero size, bad type)
texImage2D
+ with NULL
+ with array of ints
+ with bad args (bad dims, bad type, bad border)
texImage2DHTML
+ with canvas
+ with img
+ with bad args (non-image element)
+ with non-SOP img
+ with non-SOP canvas (i.e. canvas with non-SOP img)
texSubImage2D
+ with array of ints
+ with bad args (bad offset, bad dims, bad type, bad level)
texSubImage2DHTML
+ with canvas
+ with img
+ with bad args (bad level, non-image element, bad offset)
+ with non-SOP img
+ with non-SOP canvas (i.e. canvas with non-SOP img)
uniformf
+ with vec
+ with scalar
+ with OOB args
+ with bad uniform id
uniformi
+ with vec
+ with scalar
+ with OOB args
+ with bad uniform id
uniformMatrix
+ with 2x2, 3x3, 4x4 matrices
+ with OOB args
+ with bad uniform id
vertexAttrib
+ normal
+ with oob args
+ with bad attrib id
vertexAttribPointer
+ with array
+ with buffer offset
+ with bad offset
+ with bad attrib id
GLSL
+ OOB access to uniform
+ OOB access to const array
+ OOB access to attrib
+ infinite loops
+ unused attribs
+ unused uniforms