additional test logging for testing travis ci

This commit is contained in:
Tom 2024-01-18 12:45:27 -05:00
parent 44b66be0a9
commit 0a2657cb5b
16 changed files with 97 additions and 66 deletions

View File

@ -92,6 +92,7 @@
// for use with qunit tests
this._numGlMaxTextureErrors = 0;
this._numGlMaxTextureOks = 0;
}
@ -281,6 +282,8 @@
this._numGlMaxTextureErrors += 1;
$.console.error(`There was a WebGL problem: bad value for MAX_TEXTURE_IMAGE_UNITS (${maxTextures})`);
return;
} else {
this._numGlMaxTextureOks += 1;
}
let texturePositionArray = new Float32Array(maxTextures * 12); // 6 vertices (2 triangles) x 2 coordinates per vertex
let textureDataArray = new Array(maxTextures);

View File

@ -57,6 +57,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -20,6 +20,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -20,6 +20,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -18,7 +18,7 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
} else { console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks); }
viewer.destroy();
}
viewer = null;

View File

@ -21,6 +21,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -18,6 +18,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -19,6 +19,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -25,6 +25,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -46,6 +46,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -14,6 +14,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -24,6 +24,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -140,6 +140,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -23,6 +23,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -25,6 +25,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}

View File

@ -20,6 +20,8 @@
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
} else {
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
}
viewer.destroy();
}