From 2c582df903b0568e5cc995d3c1b2f94c40ca891e Mon Sep 17 00:00:00 2001 From: Elm UI Automation Date: Wed, 13 May 2020 23:13:05 -0400 Subject: [PATCH] general text wrapping test --- tests-rendering/src/Tests/TextWrapping.elm | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests-rendering/src/Tests/TextWrapping.elm diff --git a/tests-rendering/src/Tests/TextWrapping.elm b/tests-rendering/src/Tests/TextWrapping.elm new file mode 100644 index 0000000..62b71c9 --- /dev/null +++ b/tests-rendering/src/Tests/TextWrapping.elm @@ -0,0 +1,44 @@ +module Tests.TextWrapping exposing (main, view) + +import Html +import Testable +import Testable.Element exposing (..) +import Testable.Element.Background as Background +import Testable.Element.Font as Font +import Testable.Generator +import Testable.Runner +import Tests.Palette as Palette exposing (..) + + +box attrs = + el + ([ width (px 50) + , height (px 50) + , Background.color blue + ] + ++ attrs + ) + none + + +{-| -} +main : Html.Html msg +main = + Testable.Runner.show view + + +view = + column [ paddingXY 0 100, spacing 16 ] + [ paragraph [] + [ text Testable.Generator.lorem + ] + , paragraph [] + [ text Testable.Generator.lorem + , text Testable.Generator.lorem + ] + , paragraph [] + [ text Testable.Generator.lorem + , paragraph [] + [ text Testable.Generator.lorem ] + ] + ]