A port of the Khronos ARB WebGL conformance test suite to CommonJS and tape, so that it can be run without a browser or from within browserify easily.
To use the test suite, you pass it a reference to tape and whatever function you are going to use to create WebGL contexts:
require('gl-conformance')({
tape: require('tape'),
createContext: function(width, height, options) {
//Replace this with a function that constructs your WebGL context
var canvas = document.createElement('canvas')
canvas.width = width
canvas.height = height
var context = canvas.getContext('webgl', options)
return context
}
})
Then it will churn away at all the Khronos/ARB test cases and report the output to stdout as one would expect tap/tape to do.
npm install gl-conformance
Runs the WebGL conformance suite within the given environment. environment
is an object with the following properties:
tape
a refernce to atape
objectcreateContext(width,height,opts)
a function which creates a WebGL context from the given parametersfilter(caseName)
an optional filter which returnstrue
if the casecaseName
should be run
If you are installing from npm, you can ignore this section. Otherwise, for users who are building the project from github, you need to do the following:
npm install
npm run-script build
npm test
npm publish
Conformance tests are (c) Khronos ARB
CommonJS port by Mikola Lysenko