Skip to content

Commit 70f36af

Browse files
committed
run formatter
1 parent c77afbe commit 70f36af

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

test/scenic/component/input/slider_test.exs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ defmodule Scenic.Component.Input.SliderTest do
108108
Process.put(:parent_pid, self)
109109

110110
orig_value = 2.0
111-
extents = {0.0,100.0}
112-
state = %{ @state | value: orig_value, extents: extents }
111+
extents = {0.0, 100.0}
112+
state = %{@state | value: orig_value, extents: extents}
113113

114114
{:noreply, state} =
115115
Slider.handle_input({:cursor_button, {:left, :press, nil, {103, 0}}}, context, %{
@@ -138,7 +138,7 @@ defmodule Scenic.Component.Input.SliderTest do
138138

139139
orig_value = :yellow
140140
extents = [:red, :yellow, :purple, :blue, :orange]
141-
state = %{ @state | value: orig_value, extents: extents }
141+
state = %{@state | value: orig_value, extents: extents}
142142

143143
{:noreply, state} =
144144
Slider.handle_input({:cursor_button, {:left, :press, nil, {203, 0}}}, context, %{
@@ -163,6 +163,7 @@ defmodule Scenic.Component.Input.SliderTest do
163163
state
164164
| tracking: false
165165
})
166+
166167
assert_receive({:"$gen_cast", {:event, {:value_changed, :test_id, :red}, ^self}})
167168

168169
# above max
@@ -171,6 +172,7 @@ defmodule Scenic.Component.Input.SliderTest do
171172
state
172173
| tracking: false
173174
})
175+
174176
assert_receive({:"$gen_cast", {:event, {:value_changed, :test_id, :orange}, ^self}})
175177
end
176178

test/scenic/view_port/input_test.exs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,10 +732,10 @@ defmodule Scenic.ViewPort.InputTest do
732732
refute_received({:"$gen_cast", {:input, {:cursor_enter, _}, _}})
733733
end
734734

735-
#============================================================================
735+
# ============================================================================
736736
# continue input
737737

738-
test "continue_input codepoint", %{graph_key: graph_key, master_graph_key: master_graph_key} do
738+
test "continue_input codepoint", %{graph_key: graph_key, master_graph_key: master_graph_key} do
739739
{:noreply, _} =
740740
Input.handle_cast(
741741
{:continue_input, {:codepoint, :codepoint_input}},
@@ -752,5 +752,4 @@ defmodule Scenic.ViewPort.InputTest do
752752
assert context.uid == nil
753753
assert context.viewport == self()
754754
end
755-
756-
end
755+
end

0 commit comments

Comments
 (0)