mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 22:26:10 +03:00
additional test logging for testing travis ci
This commit is contained in:
parent
44b66be0a9
commit
0a2657cb5b
@ -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);
|
||||
|
@ -54,12 +54,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -17,12 +17,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
12
test/modules/controls.js
vendored
12
test/modules/controls.js
vendored
@ -17,12 +17,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -18,12 +18,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
viewer = null;
|
||||
}
|
||||
} );
|
||||
|
@ -15,12 +15,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -16,12 +16,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -43,12 +43,14 @@
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -11,12 +11,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -21,12 +21,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -137,12 +137,14 @@
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
|
||||
|
@ -20,12 +20,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -22,12 +22,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
@ -17,12 +17,14 @@
|
||||
},
|
||||
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);
|
||||
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.destroy();
|
||||
}
|
||||
|
||||
viewer = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user