mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
clean up comments and error logging
This commit is contained in:
parent
dc03989bbe
commit
d2376b571f
@ -281,8 +281,6 @@
|
|||||||
// occured in the TravisCI tests, though it did not happen when testing locally either in
|
// occured in the TravisCI tests, though it did not happen when testing locally either in
|
||||||
// a browser or on the command line via grunt test.
|
// a browser or on the command line via grunt test.
|
||||||
|
|
||||||
// use plain console.error instead of $.console.error in order to have the message show up in the test log.
|
|
||||||
console.error(`There was a WebGL problem: bad value for MAX_TEXTURE_IMAGE_UNITS (${maxTextures})`);
|
|
||||||
throw(new Error(`WegGL error: bad value for gl parameter MAX_TEXTURE_IMAGE_UNITS (${maxTextures}). This could happen
|
throw(new Error(`WegGL error: bad value for gl parameter MAX_TEXTURE_IMAGE_UNITS (${maxTextures}). This could happen
|
||||||
if too many contexts have been created and not released, or there is another problem with the graphics card.`));
|
if too many contexts have been created and not released, or there is another problem with the graphics card.`));
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,6 @@
|
|||||||
|
|
||||||
// Log the name of the currently running test when it starts. Uses console.log rather than
|
// Log the name of the currently running test when it starts. Uses console.log rather than
|
||||||
// $.console.log so that the message is printed even after the $.console is diverted (see below).
|
// $.console.log so that the message is printed even after the $.console is diverted (see below).
|
||||||
// Uncomment this code to log which test is currently running. Useful for debugging.
|
|
||||||
QUnit.testStart((details) => {
|
QUnit.testStart((details) => {
|
||||||
console.log(`Starting test ${details.module}.${details.name}`);
|
console.log(`Starting test ${details.module}.${details.name}`);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user