wui_label_test.go 514 B

12345678910111213141516171819202122232425262728293031
  1. package wui_label
  2. import (
  3. "testing"
  4. "gitp78su.ipnodns.ru/svi/kern/v4/lev0/defs"
  5. )
  6. type tester struct {
  7. t *testing.T
  8. }
  9. func TestWuiLabel(t *testing.T) {
  10. sf := &tester{
  11. t: t,
  12. }
  13. sf.new()
  14. }
  15. // Создаёт новую метку.
  16. func (sf *tester) new() {
  17. sf.t.Log("new")
  18. lbl := NewWuiLabel(defs.Txt("test_lbl")).
  19. Hassert(defs.Txt("new()"))
  20. if txt := lbl.Text(); txt == nil {
  21. sf.t.Fatalf("new(): txt==nil")
  22. }
  23. if html := lbl.Html(); html.Get() == "" {
  24. sf.t.Fatalf("new(): html is empty")
  25. }
  26. }