2022

Automatically Detecting Visual Bugs in HTML5 <canvas> Games

Macklon, Finlay, Taesiri, Mohammad Reza, Viggiato, Markos et al.

Understand

The HTML5 <canvas> is used to display high quality graphics in web applications such as web games (i.e., <canvas> games).

  • However, automatically testing <canvas> games is not possible with existing web testing techniques and tools, and manual testing is laborious.
  • Many widely used web testing tools rely on the Document Object Model (DOM) to drive web test automation, but the contents of the <canvas> are not represented in the DOM.
  • The main alternative approach, snapshot testing, involves comparing oracle snapshot images with test-time snapshot images using an image similarity metric to catch visual bugs, i.e., bugs in the graphics of the web application.

Reading the bibliography…