1

Assuming a game written using Dart + WebGL/Canvas...

Much of the logic, maths, input handling, etc. is easily testable with code; but ensuring you actually do the right thing to make your sprite turn up on screen at the correct location/orientation/etc. is more tricky.

What tools/APIs exist that would assist testing the actual rendered output?

Danny Tuppeny
  • 40,147
  • 24
  • 151
  • 275

2 Answers2

2
Jens A. Koch
  • 39,862
  • 13
  • 113
  • 141
1

What you could do is take a screenshot (of the actual outcome) and then compare it to some image you already have (expected outcome) to make sure they are the same. You could achieve that using WebDriver.

There is an example implementation which uses Selenium here: https://groups.google.com/forum/#!msg/selenium-users/8atiPIh39OY/Gp9_KEXnpRUJ

markovuksanovic
  • 15,676
  • 13
  • 46
  • 57