mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
update tests
This commit is contained in:
parent
db11611d7d
commit
44b66be0a9
@ -54,6 +54,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function() {
|
afterEach: function() {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
test/modules/controls.js
vendored
8
test/modules/controls.js
vendored
@ -16,8 +16,12 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer && viewer.close) {
|
if (viewer){
|
||||||
viewer.close();
|
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;
|
viewer = null;
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
viewer = null;
|
viewer = null;
|
||||||
|
@ -18,9 +18,12 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
viewer = null;
|
viewer = null;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
function runDrawerTests(drawerType){
|
function runDrawerTests(drawerType){
|
||||||
|
|
||||||
QUnit.module.only( 'Multi-Image-'+drawerType, {
|
QUnit.module( 'Multi-Image-'+drawerType, {
|
||||||
beforeEach: function() {
|
beforeEach: function() {
|
||||||
$( '<div id="example"></div>' ).appendTo( "#qunit-fixture" );
|
$( '<div id="example"></div>' ).appendTo( "#qunit-fixture" );
|
||||||
|
|
||||||
|
@ -43,6 +43,10 @@
|
|||||||
resetTestVariables();
|
resetTestVariables();
|
||||||
|
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,8 +26,12 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var resetTestVariables = function() {
|
var resetTestVariables = function() {
|
||||||
if (viewer) {
|
if (viewer){
|
||||||
viewer.close();
|
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 () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function() {
|
afterEach: function() {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,6 +137,10 @@
|
|||||||
ASSERT = null;
|
ASSERT = null;
|
||||||
|
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,10 +25,18 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
afterEach: function () {
|
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();
|
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();
|
viewer2.destroy();
|
||||||
}
|
}
|
||||||
viewer1 = viewer2 = null;
|
viewer1 = viewer2 = null;
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
},
|
},
|
||||||
afterEach: function () {
|
afterEach: function () {
|
||||||
if (viewer){
|
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.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user