From ec86ca5c71fecf21590b872737fbadd9aa3e158b Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 18 Jun 2021 09:39:47 +0200 Subject: Add video element and related attributes (#84) Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.--- html/attributes_test.go | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'html/attributes_test.go') diff --git a/html/attributes_test.go b/html/attributes_test.go index 1d0b312..1388494 100644 --- a/html/attributes_test.go +++ b/html/attributes_test.go @@ -11,16 +11,19 @@ import ( func TestBooleanAttributes(t *testing.T) { cases := map[string]func() g.Node{ - "async": Async, - "autofocus": AutoFocus, - "autoplay": AutoPlay, - "controls": Controls, - "defer": Defer, - "disabled": Disabled, - "multiple": Multiple, - "readonly": ReadOnly, - "required": Required, - "selected": Selected, + "async": Async, + "autofocus": AutoFocus, + "autoplay": AutoPlay, + "controls": Controls, + "defer": Defer, + "disabled": Disabled, + "loop": Loop, + "multiple": Multiple, + "muted": Muted, + "playsinline": PlaysInline, + "readonly": ReadOnly, + "required": Required, + "selected": Selected, } for name, fn := range cases { @@ -55,8 +58,9 @@ func TestSimpleAttributes(t *testing.T) { "minlength": MinLength, "name": Name, "pattern": Pattern, - "preload": Preload, "placeholder": Placeholder, + "poster": Poster, + "preload": Preload, "rel": Rel, "role": Role, "rows": Rows, -- cgit 1.4.1