mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
update tests
This commit is contained in:
parent
db11611d7d
commit
44b66be0a9
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
8
test/modules/controls.js
vendored
8
test/modules/controls.js
vendored
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
} );
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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" );
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user