Skip to content

Commit ff35fda

Browse files
committed
Fix order of args in TestDriver.
1 parent b27c978 commit ff35fda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/scenic/driver.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ defmodule Scenic.Driver do
348348
This callback is optional.
349349
"""
350350
@callback take_screenshot(driver :: Driver.t()) ::
351-
{:ok, :not_supported} | {:ok, screenshot_t, Driver.t()}
351+
{:ok, :not_supported, Driver.t()} | {:ok, screenshot_t, Driver.t()}
352352

353353
@optional_callbacks reset_scene: 1,
354354
request_input: 2,

test/scenic/view_port_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +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>>}}
86+
def take_screenshot(driver), do: {:ok, {1, 1, :rgba, <<0x00, 0x00, 0x00, 0xFF>>}, driver}
8787

8888
def handle_info(_, driver), do: {:noreply, driver}
8989
def handle_cast(_, driver), do: {:noreply, driver}

0 commit comments

Comments
 (0)