| 123456789101112131415161718192021222324252627282930 |
- package wui_label
- import (
- "testing"
- "gitp78su.ipnodns.ru/svi/kern/v4/lev0"
- )
- type tester struct {
- t *testing.T
- }
- func TestWuiLabel(t *testing.T) {
- sf := &tester{
- t: t,
- }
- sf.new()
- }
- // Создаёт новую метку.
- func (sf *tester) new() {
- sf.t.Log("new")
- lbl := NewWuiLabel(lev0.LetTxt("test_lbl")).Hassert("new()")
- if txt := lbl.Text(); txt == nil {
- sf.t.Fatalf("new(): txt==nil")
- }
- if html := lbl.Html(); html.Get() == "" {
- sf.t.Fatalf("new(): html is empty")
- }
- }
|