StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/gl-util/test/context.js

35 lines
648 B

'use strict'
let t = require('tape')
let context = require('../context')
let isBrowser = require('is-browser')
let createGl = require('gl')
t('context over context', t => {
if (!isBrowser) return t.end()
let gl = context()
t.equal(gl, context(gl))
t.end()
})
t('context container as string', t => {
if (!isBrowser) return t.end()
let canvas = document.body.appendChild(document.createElement('canvas'))
canvas.id = 'canvas'
let gl = context('#canvas')
document.body.removeChild(canvas)
t.end()
})
t('headless', t => {
let gl = context(createGl(10, 10))
t.equal(gl, context(gl))
t.end()
})