mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
remove additional test logging for testing travis ci
This commit is contained in:
parent
0a2657cb5b
commit
f6c67b2159
@ -90,10 +90,6 @@
|
|||||||
|
|
||||||
this.context = this._outputContext; // API required by tests
|
this.context = this._outputContext; // API required by tests
|
||||||
|
|
||||||
// for use with qunit tests
|
|
||||||
this._numGlMaxTextureErrors = 0;
|
|
||||||
this._numGlMaxTextureOks = 0;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Public API required by all Drawer implementations
|
// Public API required by all Drawer implementations
|
||||||
@ -278,13 +274,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let maxTextures = this._gl.getParameter(this._gl.MAX_TEXTURE_IMAGE_UNITS);
|
let maxTextures = this._gl.getParameter(this._gl.MAX_TEXTURE_IMAGE_UNITS);
|
||||||
if(maxTextures <= 0){
|
|
||||||
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 texturePositionArray = new Float32Array(maxTextures * 12); // 6 vertices (2 triangles) x 2 coordinates per vertex
|
||||||
let textureDataArray = new Array(maxTextures);
|
let textureDataArray = new Array(maxTextures);
|
||||||
let matrixArray = new Array(maxTextures);
|
let matrixArray = new Array(maxTextures);
|
||||||
|
@ -54,12 +54,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,12 +17,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
7
test/modules/controls.js
vendored
7
test/modules/controls.js
vendored
@ -17,12 +17,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,12 +18,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
viewer = null;
|
viewer = null;
|
||||||
|
@ -15,12 +15,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,12 +16,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,12 +22,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,12 +43,7 @@
|
|||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,12 +11,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,12 +21,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,12 +137,7 @@
|
|||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,12 +20,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,12 +22,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,12 +17,7 @@
|
|||||||
},
|
},
|
||||||
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);
|
|
||||||
} else {
|
|
||||||
console.log('Num OK draw calls', viewer.drawer._numGlMaxTextureOks);
|
|
||||||
}
|
|
||||||
viewer.destroy();
|
viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user