From d2376b571f4b921cbd95126e6ad86fbd4c3999a9 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 24 Jan 2024 13:02:50 -0500 Subject: [PATCH] clean up comments and error logging --- src/webgldrawer.js | 2 -- test/helpers/test.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src/webgldrawer.js b/src/webgldrawer.js index 7b34c664..923d5b33 100644 --- a/src/webgldrawer.js +++ b/src/webgldrawer.js @@ -281,8 +281,6 @@ // 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. - // 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 if too many contexts have been created and not released, or there is another problem with the graphics card.`)); } diff --git a/test/helpers/test.js b/test/helpers/test.js index f4e321d6..033c4c4d 100644 --- a/test/helpers/test.js +++ b/test/helpers/test.js @@ -151,7 +151,6 @@ // 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). - // Uncomment this code to log which test is currently running. Useful for debugging. QUnit.testStart((details) => { console.log(`Starting test ${details.module}.${details.name}`); });