Skip to content

Commit

Permalink
support glsl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolalysenko committed Oct 9, 2014
1 parent 3963e2b commit 7b0eec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ var tape = require('tape')
var runTest = require('./run-test')

function filter(caseName) {
return caseName.indexOf('more') >= 0 &&
caseName > 'more_functions_texSubImage2DHTML'
return true
}

runTest({
Expand Down
2 changes: 1 addition & 1 deletion lib/compile-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Object.keys(RESOURCES).forEach(function(resName) {
function generateShell(data) {
console.log('compiling', data.caseName)

var jsCaseName = data.caseName.replace(/\-/g, '_')
var jsCaseName = data.caseName.replace(/\-|\./g, '_')

var code = [
'var _windowShim=require("../lib/shims/window-shim");',
Expand Down
2 changes: 1 addition & 1 deletion lib/shims/document-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ proto.getElementById = function(id) {
if(script) {
return script
}
return {}
return null
}

proto.createElement = function(type) {
Expand Down

0 comments on commit 7b0eec0

Please sign in to comment.