expectFrame method

void expectFrame(
  1. String path, {
  2. bool? bless,
  3. String failures = 'build/fynkel_failures',
})

Draws the world as it is now and checks the picture against the PNG at path, as expectImage does: view.expectFrame('test/frames/start.png').

Implementation

void expectFrame(String path, {bool? bless, String failures = 'build/fynkel_failures'}) =>
    expectImage(path, read(frame()).rgba, width: width, height: height, bless: bless, failures: failures);