about summary refs log tree commit diff stats
path: root/html/attributes_test.go
diff options
context:
space:
mode:
authorMarkus Wüstenberg2021-06-18 09:39:47 +0200
committerGitHub2021-06-18 09:39:47 +0200
commitec86ca5c71fecf21590b872737fbadd9aa3e158b (patch)
treeb6de2ad1bd978d0c7f8d25ee089b2f190f2fd1e1 /html/attributes_test.go
parent0efc71d6f326efc88d25688f50f83b948b40fc38 (diff)
downloadgomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.tar.lz
gomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.tar.zst
gomponents-ec86ca5c71fecf21590b872737fbadd9aa3e158b.zip
Add video element and related attributes (#84)
Adds the `video` element and `loop`, `muted`, `playsinline`, `poster` attributes.
Diffstat (limited to 'html/attributes_test.go')
-rw-r--r--html/attributes_test.go26
1 files changed, 15 insertions, 11 deletions
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,