| 12345678910111213141516171819202122232425262728293031 |
- package wui_label
- import (
- "testing"
- "gitp78su.ipnodns.ru/svi/kern/v4/lev0/defs"
- )
- 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(defs.Txt("test_lbl")).
- Hassert(defs.Txt("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")
- }
- }
|