Skip to content

Commit b27c978

Browse files
committed
Add stub take_screenshot/1 to TestDriver.
1 parent 9018c44 commit b27c978

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/scenic/view_port_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ defmodule Scenic.ViewPortTest do
8383
def request_input(_input, driver), do: {:ok, driver}
8484
def reset_scene(driver), do: {:ok, driver}
8585
def clear_color(_color, driver), do: {:ok, driver}
86+
def take_screenshot(driver), do: {:ok, driver, {1, 1, :rgba, <<0x00, 0x00, 0x00, 0xFF>>}}
8687

8788
def handle_info(_, driver), do: {:noreply, driver}
8889
def handle_cast(_, driver), do: {:noreply, driver}

0 commit comments

Comments
 (0)