Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case and fix for glGetDebugInfo regression under Node. (#111)
* Add test case and fix for glGetDebugInfo regression under Node. * Add "experimental.js" to exported "files" in package.json. * Add comments to some top-level test index.js files
- Loading branch information
Showing
16 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
// Note that we do two test runs on luma.gl, with and without headless-gl | ||
// This file imports tests that should run *without* headless-gl included | ||
|
||
require('babel-core/register'); | ||
require('babel-polyfill'); | ||
|
||
// Quick test that webgl independent code works | ||
require('./webgl/core-spec'); | ||
require('./webgl/context-no-headless.spec'); | ||
require('./webgl-independent'); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const {createGLContext, glGetDebugInfo} = require('../../src/headless'); | ||
const {isWebGLContext} = require('../../src/webgl/webgl-checks'); | ||
|
||
const test = require('tape-catch'); | ||
|
||
test('WebGL#headless context creation', t => { | ||
const gl = createGLContext(); | ||
t.ok(isWebGLContext(gl), 'Context creation ok'); | ||
t.end(); | ||
}); | ||
|
||
test('WebGL#glGetDebugInfo', t => { | ||
const gl = createGLContext(); | ||
const info = glGetDebugInfo(gl); | ||
t.ok(typeof info.vendor === 'string', 'info.vendor ok'); | ||
t.ok(typeof info.renderer === 'string', 'info.renderer ok'); | ||
t.end(); | ||
}); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
// Note that we do two test runs on luma.gl, with and without headless-gl | ||
// This file imports tests that should run *with* headless-gl included | ||
|
||
// helpers & utils | ||
import './helpers/query-manager.spec'; | ||
|
||
// webgl | ||
import './webgl-spec'; | ||
import './core-spec.js'; | ||
import './vertex-attributes-spec'; | ||
import './buffer-spec'; | ||
import './program-spec'; | ||
import './texture-spec'; | ||
import './framebuffer-spec'; | ||
import './renderbuffer-spec'; | ||
import './draw-spec'; | ||
import './uniforms-spec'; | ||
import './context.spec.js'; | ||
import './vertex-attributes.spec'; | ||
import './buffer.spec'; | ||
import './program.spec'; | ||
import './texture.spec'; | ||
import './framebuffer.spec'; | ||
import './renderbuffer.spec'; | ||
import './draw.spec'; | ||
import './uniforms.spec'; | ||
|
||
// Extensions | ||
import './timer-query.spec'; | ||
|
||
// import './fbo-spec'; | ||
|
||
// webgl2 | ||
import './vertex-array-object-spec'; | ||
import './vertex-array-object.spec'; | ||
|
||
// misc | ||
import './io-spec'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.