Skip to content

Commit

Permalink
Add stub take_screenshot/1 to TestDriver.
Browse files Browse the repository at this point in the history
  • Loading branch information
crertel committed Apr 26, 2022
1 parent 9018c44 commit b27c978
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/scenic/view_port_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ defmodule Scenic.ViewPortTest do
def request_input(_input, driver), do: {:ok, driver}
def reset_scene(driver), do: {:ok, driver}
def clear_color(_color, driver), do: {:ok, driver}
def take_screenshot(driver), do: {:ok, driver, {1, 1, :rgba, <<0x00, 0x00, 0x00, 0xFF>>}}

def handle_info(_, driver), do: {:noreply, driver}
def handle_cast(_, driver), do: {:noreply, driver}
Expand Down

0 comments on commit b27c978

Please sign in to comment.