If you happened to open your browser's debugger tools throughout this book, you may have noticed that the canvas you saw was a complete "black box". That is, you cannot inspect any of its elements as you could with the DOM elements on a web page. If you come from a traditional web-development background, this may seem like a big problem, since we're used to leveraging the DOM to help us query elements to test our application. So, how can we ensure the quality and stability of our WebGL applications?
Testing WebGL 2 Applications
Visual Regression Testing
Image comparisons of various application states throughout the development cycle is a common approach for testing WebGL applications. This technique, often...