mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-11-29 07:18:39 +03:00
general text wrapping test
This commit is contained in:
parent
9f9f9bbd20
commit
2c582df903
44
tests-rendering/src/Tests/TextWrapping.elm
Normal file
44
tests-rendering/src/Tests/TextWrapping.elm
Normal file
@ -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 ]
|
||||
]
|
||||
]
|
Loading…
Reference in New Issue
Block a user