update tests

This commit is contained in:
Tom 2024-01-17 17:07:25 -05:00
parent db11611d7d
commit 44b66be0a9
17 changed files with 75 additions and 8 deletions

View File

@ -54,6 +54,10 @@
},
afterEach: function() {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -17,6 +17,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -16,8 +16,12 @@
},
afterEach: function () {
if (viewer && viewer.close) {
viewer.close();
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}
viewer = null;

View File

@ -15,6 +15,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}
viewer = null;

View File

@ -18,9 +18,12 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}
viewer = null;
}
} );

View File

@ -15,6 +15,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -16,6 +16,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -7,7 +7,7 @@
function runDrawerTests(drawerType){
QUnit.module.only( 'Multi-Image-'+drawerType, {
QUnit.module( 'Multi-Image-'+drawerType, {
beforeEach: function() {
$( '<div id="example"></div>' ).appendTo( "#qunit-fixture" );

View File

@ -43,6 +43,10 @@
resetTestVariables();
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -26,8 +26,12 @@
});
var resetTestVariables = function() {
if (viewer) {
viewer.close();
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}
};

View File

@ -11,6 +11,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -21,6 +21,10 @@
},
afterEach: function() {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -137,6 +137,10 @@
ASSERT = null;
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -20,6 +20,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -25,10 +25,18 @@
},
afterEach: function () {
if (viewer1 && viewer1.destroy) {
if (viewer1){
let errors = viewer1.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer1.destroy();
}
if (viewer2 && viewer2.destroy) {
if (viewer2){
let errors = viewer2.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer2.destroy();
}
viewer1 = viewer2 = null;

View File

@ -22,6 +22,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}

View File

@ -17,6 +17,10 @@
},
afterEach: function () {
if (viewer){
let errors = viewer.drawer._numGlMaxTextureErrors;
if(errors > 0){
console.log('Number of times MAX_TEXTURE_IMAGE_UNITS had a bad value:', errors);
}
viewer.destroy();
}