wui_label_test.go 499 B

123456789101112131415161718192021222324252627282930
  1. package wui_label
  2. import (
  3. "testing"
  4. "gitp78su.ipnodns.ru/svi/kern/v4/lev0"
  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(lev0.LetTxt("test_lbl")).Hassert("new()")
  19. if txt := lbl.Text(); txt == nil {
  20. sf.t.Fatalf("new(): txt==nil")
  21. }
  22. if html := lbl.Html(); html.Get() == "" {
  23. sf.t.Fatalf("new(): html is empty")
  24. }
  25. }